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
Once I tried to replace Plain JavaScript Object to Class but it didn't work because we need to think more and a ready for replacing it. I'm listing below what we have to do before going on.
1. Transformer Layer
Redux cannot handle instances of the class so has to use Plain JavaScript Object. UI layer will use Class so we have to create Transform Layer between UI Layer and Redux Layer.
2. Refactor reducer to be a pure function
To begin with, as best practice, reducer should be a pure function( at least should be referential transparency). But, some reducer has a dependency of Model that's meaning we need refactor before replacing tasks. Otherwise, I need to handle complicated tasks when replacing tasks so I want to split each task into small and tackling before going on.
Overview
In terms of the model of core logic in Plangoab, we implemented using not a class but plain JS object because of reason as part of some experiment.
However, I finally realized this way is absolutely inferior so going to replace it.
https://github.com/snamiki1212/plangoab/blob/main/doc/ARCHITECTURE.md#no-class-but-function
Packages
Choosing below pkg because of handling with Object immutably.
State of Redux
The state of redux can only plain js object so need to convert instance and plain js object when to input/output.
Persist of Redux
redux-persist
so I need to make an adjustment of stakeholders before going on this task or deploy.Targets
ARCHITECTURE.md
/calendar
/event
/resource
/story
The text was updated successfully, but these errors were encountered: