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
[BUG] Refreshing a page with Ant Design's useTable's search usage doesn't bring back the value #5798
Comments
Hey @linkscope can you clarify what do you mean here?
Search isn't expected to be triggered on the first render. Only after user searches something. |
Hello, @BatuhanW but I did find parameters being carried in the request API, and I'm guessing it might be because Search is still essentially a Filter, which can also be seen as a filter field in the url parameter, and I'm having these two thoughts right now:
|
Hey @linkscope thanks for the clarification! I see the point now. Adding video to give context. We'll discuss it and get back to you. Screen.Recording.2024-04-03.at.12.01.16.mov |
Hi @BatuhanW. Have this issue resolved? I also have the same problems with video that you attached. |
Hey @linkscope and @CapiZerbino, this issue is related with our CRM example app. Default value for the search input is missing, even though the filter persists with If anyone is interested on working this one, we'd be happy to see your contributions 🙏 |
Describe the bug
Hello,
When following the example from the official documentation Ant Design's useTable's search, I found that when
syncWithLocation: true
, the url's parameters are not insearchFormProps.initialValues
and theonSearch
hook is not triggered on the first render, but the parameters are brought in when requesting the API, is this a bug? If it is not an error, please let me know the solution.Thanks, team
Steps To Reproduce
syncWithLocation: true
.searchFormProps.initialValues
.Expected behavior
Normal echoing of parameters from the url to the search form
Packages
Additional Context
No response
The text was updated successfully, but these errors were encountered: