kirill-konshin/next-redux-wrapper

Redux Toolkit example is unclear

hypnoboutique opened this issue · 0 comments

Describe the bug

There is a full example of implentation with redux tool kit here (mentioned in the readme). But the example contains the following comment, with no further explanation:

//FIXME This is not a recommended approach, only used here for demo purposes

As a result, I'm unclear about how to implement next-redux-wrapper with RTK correctly (which I'm trying to do to silence a warning about using the legacy withRedux method).

To Reproduce

  1. Click link in this line of the ReadMe
  2. Navigate to pages/_app.tsx
  3. See FIXME comment and no explanation of what is the recommended implementation

Expected behavior

a) A clear and concise description of how to implement with redux toolkit
OR
b) removal of this warning, if we should/can continue to use withRedux.

Screenshots

n/a

Desktop (please complete the following information):

n/a

Additional context

n/a