-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fixes multiple issues in routing form #4676
Conversation
@G3root is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thanks @G3root for the untranslated content fix and the PR. This PR seems to address 2 issues
But I do see that issue 2 does occur on production but only when a Form is created for the first time. On, consecutive attempts forms list update just fine. See loom https://www.loom.com/share/94d7a3b051194dda88d79f89cc633d70 Forms list updates automatically because the page is SSR and whenever someone goes to the page a .json request is sent by Next.js automatically that updates the forms list page. But this behaviour doesn't seem to trigger for the very first Form creation. We need to figure out why, may be you can help. Theoretically, your fix of switching to tRPC(with SSR'd data as initial data) would work, but I don't want to involve tRPC on SSR pages which should already have the data we are fetching through tRPC |
If you can open a PR for untranslated content, that can be merged quickly |
yeah you are right, involving tRPC here is might not be the best. the reason i went on with this approach is because, this path another advantage involving tRPC is that we can make use of optimistic-updates. what's your thought's on that ? |
Yeah, that's dead code. It should not have been there.
That's a valid point. We are not using optimistic updates in general in the app. But I do think they would provide good UX. I will take a look at this PR again for the Optimistic updates approach. |
@G3root Thanks for the PR. It should be merged soon now. |
What does this PR do?
this PR fixes multiple issues in routing forms. issues fixed:
issues:
https://www.loom.com/share/f9bce957b58b441ea1330f94e0ad801c
https://www.loom.com/share/2ebd792efeb2448983168f08bfa0db15
after:
https://www.loom.com/share/a827a228b3e84681815a2d5a9b2ce549
Environment: Staging(main branch) / Production
Type of change