Page MenuHomePhabricator

[web] Add redux persist dependency
ClosedPublic

Authored by tomek on Aug 11 2022, 9:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 4:06 PM
Unknown Object (File)
Tue, Jun 4, 11:21 PM
Unknown Object (File)
May 27 2024, 1:51 AM
Unknown Object (File)
May 27 2024, 1:51 AM
Unknown Object (File)
May 27 2024, 1:46 AM
Unknown Object (File)
May 14 2024, 1:36 PM
Unknown Object (File)
Apr 29 2024, 5:46 PM
Unknown Object (File)
Apr 20 2024, 3:24 PM

Details

Summary

We would like to use persistence on web and the most convenient way to do that is to use redux-persist. We already use that library on native. The default persistence location of web is local storage which is what we need.

This diff also contains a patch that fixes a bug in redux-persist types: _persist should be an optional property. I've decided to put these two changes in one diff because without the patch this library is basically unusable on web.

Test Plan

Run the web and check if opening the app works. The behavior shouldn't be affected by this change.
Check if running yarn install installs the library with the patch applied.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable