Skip to content

Commit

Permalink
[docs] Fix typo (#2636)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Oct 5, 2022
1 parent c60d90d commit fcd16b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/docs/hooks/use-local-storage.mdx
Expand Up @@ -73,9 +73,9 @@ const [value, setValue, removeValue] = useLocalStorage({
## Browser tabs synchronization

use-local-storage subscribes to [storage event](https://developer.mozilla.org/en-US/docs/Web/API/Window/storage_event).
When state changes in one tab it automatically updates value in all other opened browser tabs.
When state changes in one tab, it automatically updates value in all other opened browser tabs.
You can test this feature by opening 2 tabs with Mantine docs side by side and changing color scheme
(button on the top right or `⌘ + J` on mac and `Ctrl + J` on Windows and Linux).
(button on the top right or `⌘ + J` on MacOS and `Ctrl + J` on Windows and Linux).

## Serialize/deserialize json

Expand Down Expand Up @@ -132,10 +132,10 @@ interface UseLocalStorage<T> {
/** Default value that will be set if value is not found in local storage */
defaultValue?: T;

/** If set to true, value will be update is useEffect after mount */
/** If set to true, value will be update in useEffect after mount */
getInitialValueInEffect: boolean;

/** Function to serialize value into string to be save in local storage */
/** Function to serialize value into string to be saved in local storage */
serialize?(value: T): string;

/** Function to deserialize string value from local storage to value */
Expand Down

0 comments on commit fcd16b3

Please sign in to comment.