-
Notifications
You must be signed in to change notification settings - Fork 119
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
Updating state with useSearchParams on Select component causes multiple reenders #1817
Comments
Seems like adding a key to the Select works. 2023-12-03.16-40-43.mp4 |
In Remix causes the same issue: https://search-param-remix.vercel.app/ (update the state and check the console, it doesn't block the render like Nextjs but it causes multiple reenders too, so it must not be a Nextjs error) 2023-12-03.18-01-22.mp4 |
After reviewing the issue, it appears there's also a concern related to Radix. Currently, the solution from our end is unclear. If you identify the root cause and believe a fix can be implemented within Ark, please feel free to reopen this issue. We're closing it for now due to the lack of a clear resolution path. |
I think this issue should be opened for reference of the bug and how to come up with a termporary solution. Because is certainly a Ark/Zag bug. Radix and Ariakit is working fine with Nextjs and ARK is not working great with Remix and Nextjs. Radix + Nextjs: 2023-12-05.12-45-53.mp4Nextjs + Ariakit: 2023-12-05.13-27-23.mp4Remix + Ark: 2023-12-05.12-46-16.mp4 |
Description
When using Nexjjs's useSearchParams hook with Select component causes multiple reenders.
Link to Reproduction (or Detailed Explanation)
https://use-search-param-ark.vercel.app/search-param
Steps to Reproduce
Ark UI Version
1.1.0
Framework
Browser
No response
Additional Information
GitHub Repo: https://github.com/juliomuhlbauer/use-search-param-ark
Context:
I had opened an issue first on next-usequerystate 47ng/nuqs#370, but it wasn't the problem.
Then I opened an issue in Ark: #1738 and Nextjs: vercel/next.js#58684
We tested different solutions. And I think the problem is with Ark UI.
I also tested with Radix and it is working fine: https://use-search-param-ark.vercel.app/search-param-radix
2023-12-03.16-30-48.mp4
The text was updated successfully, but these errors were encountered: