구체적인 질문

모든걸 구체적으로 잘 적어줘야 알맞은 대답이 나온다.

Here are the common implementation strategy:

1. Shared view model is implemented as Redux store slice. Tested in vitest.

2. Local view model is implemented as React component props or states (by useState hook), unless for global local view model, which is also implemented as Redux store slice. Tested in vitest.

3. Hooks are used as the major view helpers to retrieve data from shared view model. For most the case, it will use ‘createSelector’ and ‘useSelector’ for memorization. Tested in vitest and react testing library.

4. Don’t dispatch action directly to change the states of shared view model, use an encapsulated view model interface instead. In the interface, each redux action is mapped to a method. Tested in vitest.

5. View is consist of konva shapes, and implemented as react component via react-konva. Tested in cypress component tests.

이런식이다.

이렇게 까지 다 적어 줘야하나? 음.

Last updated