A component from the Recoil Sync library to sync atoms using the
urlSyncEffect() atom effects with the browser URL.
This is identical to the
<RecoilURLSync> component except that it provides built-in JSON encoding and does not accept
- null -
- boolean -
- number -
- string -
- Array -
- Object -
This implementation handles
undefined as an empty query param or a non-existent object property.
Date class is also supported by encoding it as an ISO string. This can be re-hydrated back to a
Date object if you use the
jsonDate() checker from Refine.
See the URL Persistence Guide for examples.