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
The existing frontend codebase is partially migrated from the Context API to Redux Toolkit. While the appview, menu, and query components have been successfully migrated, the remaining components including DatabaseReducers, ERDReducers, and related actions, still use the Context API. This partial migration creates inconsistency in state management, making the codebase harder to maintain and scale.
Solution
Create slice file for DatabaseReducers and ERDReducers
Define the Initial State and Reducers by moving the logic from DatabaseActions.ts, ERDMySqlActions.ts, ERDPsqlActions.ts, and ERDSqLiteActions.ts into the slices.
Add the slices to the store configuration in store.ts.
For each component using DatabaseActions and ERDActions, update to use useSelector and useDispatch.
Remove the old related actions, contexts and reducers
Additional information
No response
👨👧👦 Contributing
🙋♂️ Yes, I'd love to make a PR to implement this feature!
The text was updated successfully, but these errors were encountered:
Problem
The existing frontend codebase is partially migrated from the Context API to Redux Toolkit. While the appview, menu, and query components have been successfully migrated, the remaining components including DatabaseReducers, ERDReducers, and related actions, still use the Context API. This partial migration creates inconsistency in state management, making the codebase harder to maintain and scale.
Solution
Additional information
No response
👨👧👦 Contributing
The text was updated successfully, but these errors were encountered: