You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/List.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ You can find more advanced examples of `<List>` usage in the [demos](./Demos.md)
71
71
|`queryOptions`| Optional |`object`| - | The options to pass to the `useQuery` hook. |
72
72
|`resource`| Optional |`string`| - | The resource name, e.g. `posts`. |
73
73
|`sort`| Optional |`object`| - | The initial sort parameters. |
74
-
|`storeKey`| Optional |`string`| - | The key to use to store the current filter & sort. |
74
+
|`storeKey`| Optional |`string`|`false`| - | The key to use to store the current filter & sort. Pass `false` to disable|
75
75
|`title`| Optional |`string`| - | The title to display in the App Bar. |
76
76
|`sx`| Optional |`object`| - | The CSS styles to apply to the component. |
77
77
@@ -849,6 +849,8 @@ const Admin = () => {
849
849
850
850
**Tip:** The `storeKey` is actually passed to the underlying `useListController` hook, which you can use directly for more complex scenarios. See the [`useListController` doc](./useListController.md#storekey) for more info.
851
851
852
+
You can disable this feature by setting the `storeKey` prop to `false`. When disabled, parameters will not be persisted in the store.
853
+
852
854
## `title`
853
855
854
856
The default title for a list view is "[resource] list" (e.g. "Posts list"). Use the `title` prop to customize the List view title:
0 commit comments