You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
there is a lot of state that is duplicated between appState and ledgerInfo/publisherInfo in app/index.js, which becomes confusing to keep in sync. this should be deduplicated somehow.
The text was updated successfully, but these errors were encountered:
creating a ledgerState or working directly with appState (not using actions to manipulate state)
refactoring code to be reducer friendly
breaking up app/ledger.js into a utils and a state helper
I have an example that I spent maybe 20 minutes hacking on which shows some progress towards that goal. Definitely curious what others think!
cc: @bbondy@bridiver@diracdeltas@mrose17
Notice that with a reasonable amount of effort, we can pull most of the code out of app/ledger.js and into both a state helper (for methods manipulating state; eg: the reducers) and a utils class (business logic). With the code broken out here, we can then begin the process of writing unit tests 😄
a separate ledger state would be going against the plan to consolidate into a single appState. We also want to move away from the json files and move things into the chromium user prefs storage which is already setup for cross-device sync. We can also bring in the history component to keep it out of the general preferences. I think we should focus on merging the ledger info into the appState so it will get migrated to user prefs store along with everything else
there is a lot of state that is duplicated between
appState
andledgerInfo
/publisherInfo
in app/index.js, which becomes confusing to keep in sync. this should be deduplicated somehow.The text was updated successfully, but these errors were encountered: