Page MenuHomePhabricator

Make sure drafts are not persisted via redux-persist but a placeholder is created upon rehydration
ClosedPublic

Authored by marcin on Nov 16 2022, 4:33 AM.
Tags
None
Referenced Files
F3360685: D5645.diff
Sun, Nov 24, 1:55 PM
Unknown Object (File)
Tue, Nov 19, 2:22 PM
Unknown Object (File)
Tue, Nov 19, 2:22 PM
Unknown Object (File)
Tue, Nov 19, 2:22 PM
Unknown Object (File)
Tue, Nov 19, 2:22 PM
Unknown Object (File)
Tue, Nov 19, 2:22 PM
Unknown Object (File)
Tue, Nov 19, 2:22 PM
Unknown Object (File)
Tue, Nov 19, 2:21 PM
Subscribers

Details

Summary

This differential prevents drafts from being persisted in redux persist

Test Plan

Make sure eslint and flow do not point errors. This is trival test plan, but no other is possible before we implement relevant reducers.

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-2137
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 16 2022, 4:35 AM
Harbormaster failed remote builds in B13466: Diff 18465!
ashoat requested changes to this revision.Nov 16 2022, 7:18 PM
ashoat added inline comments.
native/redux/persist.js
422–433

Just add draftStore to the blacklist please

This revision now requires changes to proceed.Nov 16 2022, 7:18 PM

Add draftStore to blacklist instead of using unnecessary custom trahsform

This revision is now accepted and ready to land.Nov 17 2022, 9:52 AM

On the web side, we'll want to do the opposite and add this to the whitelist