-
Notifications
You must be signed in to change notification settings - Fork 20
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/activity feed re-fetching behavior #139
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like the wrong approach. We are using nuqs
for search params management, and have a hook handling the setting/reading of the current search params state, and passing it to the query function. Why can't we control this from within that hook? What about the clearOnDefault option?
Okay, the reason I'm using |
Okay, if you mean moving the logic where I'm creating I'm going to write the code here instead. If you approve of it I'll add these changes:
and
I tested this and it works without the double flash behavior ✔️ |
I haven't heard about this option before, but I did a little research and couldn't find this option in the list here in tanstack docs: https://tanstack.com/query/latest/docs/framework/react/reference/useQuery |
No, As for your other question: no, I don't mean simply moving where you create search params. I don't want us to have two different approaches to setting and updating searchParams at all. If the issue is that the refetch is triggered when nuqs adds default values, we need to either prevent that ( |
Yeah, I tried |
This PR intends to fix the double flash of content behavior in the activity feed table