From da63a47f4ef644d328265fb952bcb8c16e6355c2 Mon Sep 17 00:00:00 2001 From: Sepehr Safari Date: Sun, 3 Jul 2022 17:16:11 +0430 Subject: [PATCH] docs: typo in atom-with-storage.mdx 1) Fixed typo "retreiving" to "retrieving". 2) Fixed typo "retreival" to "retrieval". --- docs/utils/atom-with-storage.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/utils/atom-with-storage.mdx b/docs/utils/atom-with-storage.mdx index a7c3e81ce8..4b872276f9 100644 --- a/docs/utils/atom-with-storage.mdx +++ b/docs/utils/atom-with-storage.mdx @@ -32,7 +32,7 @@ The `atomWithStorage` function creates an atom with a value persisted in `localS **storage** (optional): an object with: -- `getItem` and `setItem` methods for storing/retreiving persisted state; defaults to using `localStorage` for storage/retreival and `JSON.stringify()`/`JSON.parse()` for serialization/deserialization. +- `getItem` and `setItem` methods for storing/retrieving persisted state; defaults to using `localStorage` for storage/retrieval and `JSON.stringify()`/`JSON.parse()` for serialization/deserialization. - Optionally, the storage has a `subscribe` property, which can be used to synchronize storage. The default `localStorage` handles `storage` events for cross-tab synchronization. - Optionally, the storage has a `delayInit` (`boolean`) property, which can be used to tell jotai whether to use Suspense - `delayInit: true` will not suspend when first reading the value of your atom