diff --git a/docs/src/docs/hooks/use-local-storage.mdx b/docs/src/docs/hooks/use-local-storage.mdx index c8906f2f3da..5d3b41d24a9 100644 --- a/docs/src/docs/hooks/use-local-storage.mdx +++ b/docs/src/docs/hooks/use-local-storage.mdx @@ -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 @@ -132,10 +132,10 @@ interface UseLocalStorage { /** 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 */