Skip to content

Commit df0cb8d

Browse files
slax57djhi
andauthored
[no ci] Update docs/Store.md
Co-authored-by: Gildas Garcia <[email protected]>
1 parent 48b8387 commit df0cb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ This way, each time the application is loaded, the store will be reset to an emp
166166

167167
## Testing Components Using The Store
168168

169-
The react-admin Store is persistent. This means that if a unit test modifies an item in the store, the value will be changed for the next test. This will cause random test failures when you use `useStore()` in your tests, or any feature depending on the store (e.g. datatable row selection, sidebar state, language selection).
169+
The react-admin Store is persistent. This means that if a unit test modifies an item in the store, the value will be changed for the next test. This will cause random test failures when you use `useStore()` in your tests, or any feature depending on the store (e.g. `<DataTable>` row selection, sidebar state, language selection).
170170

171171
To isolate your unit tests, pass a new `memoryStore` for each test:
172172

0 commit comments

Comments
 (0)