How to render only one cell's inside of useMemo table ? #5160
Unanswered
mustafademiray1
asked this question in
General
Replies: 1 comment
-
can any one help me ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
When i update my data in useMemo hook, all accesstor items re-rendered. But some cell's have image and when re-rendered, its looking bad for users.
How can i update only one cell inside of useMemo hook. I can't update only one cell's value. Where i put useRowState and how can i get the updated value in cell ? My code :
const currentPairsColumns = useMemo( () => [ columnHelper.accessor("name", { header: () => t("tableheader2"), cell: (info) => ( <FallbackImage mb="-7px" src={/svg/icon/${info.getValue().toLowerCase().split("/")[0]}.svg} width={20} height={20} alt="" /> {info.getValue().toUpperCase()} ), }),], [] );
Beta Was this translation helpful? Give feedback.
All reactions