Replies: 2 comments 7 replies
-
Hello @vwo, could you try out getting the url with |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hi I have kind of the same problem. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I'd like to get ideas on how would you use SWR to handle pages that are both for create and edit data?
Example:
Now this is almost FINE but ideally I'd like the new form case, when submitted, to just refresh the page with new content. But router.replace does reload the page and so there's a small blank screen pause before content is loaded. I am stuck on how I could make this better, any idea?
I though about still using SWR even for the new case and handling the "id=new" part server side (sending default data, etc..).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions