Commit Graph

13 Commits (113b07abcf1450de0caf462ff38d4e3516da8596)

Author SHA1 Message Date
Nolan Lawson 97f6ffde2d refactor: remove _JSON 2019-12-30 09:07:54 -08:00
Nolan Lawson 6bb1932db8 fix: remove core-js dependency 2019-12-29 11:52:13 -08:00
Nolan Lawson 61c0bd4e4e fix: remove _JSON 2019-12-21 11:18:30 -08:00
Carl Tessier f3387cdce2 fix: gracefully ignore bad JSON in localstorage (#385)
Don't crash (catch the exception) if the localstorage value does not contain valid JSON.
2019-12-21 09:17:41 -08:00
Etienne Lemay 9cd6494c39 Handle using custom storage instead of localStorage 2017-11-07 19:02:32 -08:00
Etienne Lemay 3021758115 Prettier 💄 2017-10-07 00:02:29 -04:00
Igor Lobanov 4dc05ef8da Size reduced from 87.35 KB to 79.43 KB 2017-09-17 12:06:42 +03:00
Trevor Rundell c3aae4fb04 wrap localStorage access in try-catch
Many browsers may support localStorage, but disable access to it in certain situations. For example, Safari private browsing mode will raise an exception if you try to access localStorage from a third-party domain, resulting in unhandled errors like...

> QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.

The easiest way to handle this for optional features is to simply try-catch all access to localStorage.
2017-01-15 10:52:54 -05:00
Etienne Lemay 672a6a4dfc 💄 2016-12-07 20:57:42 -05:00
Anri Asaturov b3752574b2 Allow custom namespace for store 2016-12-07 01:23:35 +02:00
Etienne Lemay f31a359f78 Add support for server-side rendering [Fix #7] 2016-10-03 21:16:20 -04:00
Etienne Lemay 9648c7d8e2 🏬 Emoji Mart™ 2016-07-27 11:35:12 -04:00
Etienne Lemay 8a022b69fa Add store utils 2016-07-07 14:33:53 -04:00