Replies: 1 comment
-
That’s a lot of code. Do you have any specific questions? Generally, custom hooks are good 😊 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We are using react-query to determine some basic permissions based on content inside the cache but I'm not sure if the setup we've created is a sound one as I'm still a noob when it comes to React.
Here is a sample of how the code looks. It seems to work. But I'm specifically looking for any traps related to state changes that such an implementation can result in that I've overlooked?
Also, if this is not the correct place for this question I'll see myself to stack overflow next.
Thanks for your input.
Beta Was this translation helpful? Give feedback.
All reactions