是否可以禁用react-admin将筛选器保存在应用程序状态中?

huangapple go评论49阅读模式
英文:

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 🙂

huangapple
  • 本文由 发表于 2023年6月14日 23:36:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76475279.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定