Open greg-toth opened 2 years ago
i'd suggest redux-toolkit
to standardise our approach https://redux-toolkit.js.org/ - which includes a number of useful generators and wrappers for common redux tasks, as well as good typing support. Thunks are included OOTB.
How did I miss that! Well using createAsyncThunk
is common sense then. In that case can this ticket be closed, or does the solution need to be fleshed out further/an ADR written?
My inclination would be that this is an MFE implementation detail and we can probably close this, unless there's something specific to async actions that breaks with federation? Maybe just needs a PoC implementation?
Maybe just needs a PoC implementation?
Yeah might be wise, should be relatively easy, and redux-toolkit
has very good documentation in my experience which is a huge plus. Could prepare one in a branch?
we need a solution to implement redux thunk and come up with a solution to deal with side effects and how to load data from databases.