Replies: 1 comment
-
@efreila How did you solve it? |
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.
-
I currently have a column in my table that is supposed to show one of two different values based on a boolean stored in a global context. Ideally, to achieve this, I would be able to useContext() in my accessor function and return an accessor value based on the context state. I currently pass both pieces of data into the useTable() hook, so it's available in each row. However, since "accessor" is not a custom hook or component, I can't useContext() in it. I thought of a few other solutions but wasn't sure what the best approach would be.
Would love to discuss and hear your suggestions to get this working.
Beta Was this translation helpful? Give feedback.
All reactions