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
> With additional configuration, [json-marshal <sup>↗</sup>](https://github.com/smikhalevski/json-marshal#readme)
1453
1451
> can stringify and parse any data structure.
1454
1452
1455
-
By default, `syncStorage` plugin uses a [serialized executor key](#executor-keys) as a storage key. You can provide a
1456
-
custom key
1457
-
via [`storageKey` <sup>↗</sup>](https://smikhalevski.github.io/react-executor/interfaces/plugin_syncStorage.SyncStorageOptions.html#storagekey)
1453
+
By default, `syncBrowserStorage` plugin uses a [serialized executor key](#executor-keys) as a storage key. You can
1454
+
provide a custom key
1455
+
via [`storageKey` <sup>↗</sup>](https://smikhalevski.github.io/react-executor/interfaces/plugin_syncBrowserStorage.SyncBrowserStorageOptions.html#storagekey)
When executor is [settled](#settle-an-executor), [cleared](#clear-an-executor), [invalidated](#invalidate-results) or
1489
+
annotated then the plugin calls
1490
+
the [`ExternalStore.set` <sup>↗</sup>](https://smikhalevski.github.io/react-executor/interfaces/plugin_syncExternalStore.ExternalStore.html#set)
1491
+
method on the store.
1492
+
1493
+
When executor is [detached](#detach-an-executor) then the plugin calls
1494
+
the [`ExternalStore.delete` <sup>↗</sup>](https://smikhalevski.github.io/react-executor/interfaces/plugin_syncExternalStore.ExternalStore.html#delete)
1495
+
method on the store.
1496
+
1497
+
Prefer [`syncBrowserStorage`](#syncbrowserstorage) if you want to persist the executor state in a `localStorage`
1498
+
or `sessionStorage`.
1499
+
1471
1500
# React integration
1472
1501
1473
1502
In the basic scenario, to use executors in your React app, you don't need any additional configuration, just use
@@ -2091,21 +2120,21 @@ const App = () => <ExecutorManagerProvider value={manager}>{/* Render you app he
2091
2120
2092
2121
## Storage state versioning
2093
2122
2094
-
You can store an executor state in a `localStorage` using the [`syncStorage`](#syncstorage) plugin:
2123
+
You can store an executor state in a `localStorage` using the [`syncBrowserStorage`](#syncbrowserstorage) plugin:
0 commit comments