Replies: 1 comment 1 reply
-
I also just tried modifying the returned |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi! I have a controlled component for displaying saved text, which the user can also edit. I want to fetch the data initially using SWR, and then allow edits to be made without actually doing a mutation until the user hits "post".
Is the right approach to have local state that gets set upon the initial data being loaded? For example:
An empty state is also valid here, but I'm assuming I should just use an empty string or
null
rather than undefined.Beta Was this translation helpful? Give feedback.
All reactions