英文:
Is it possible to disable react-admin persisting the filters in application state?
问题
我正在尝试在保持 URL 中的应用筛选条件的同时禁用筛选条件在应用程序状态中持久化。
我尝试了 disableSyncWithLocation
属性,但这会从 URL 中删除已应用的筛选条件,而我想要保留这部分功能。
我只是不希望在重新访问资源列表时从应用程序状态中应用先前应用的筛选条件。
英文:
I'm trying to disable filters being persisted in application state whilst keeping the applied filters in the URL
I've tried the disableSyncWithLocation
prop, but this removes applied filters from the URL which is part of the functionality I want to keep.
I just don't want previously applied filters to be applied from application state when revisiting a resource list.
答案1
得分: 1
即将发布的 react-admin v4.12 将包括此 PR:https://github.com/marmelab/react-admin/pull/9019 ,这将允许做到这一点 🙂
英文:
Upcoming react-admin v4.12 will include this PR: https://github.com/marmelab/react-admin/pull/9019 , which will allow to do exactly that 🙂
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论