Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • You should not store a class instance like this in Redux. Redux is for static data where Redux controls when data changes, and only in a reducer. That web3authInstance is a dynamic class incstance that changes itself on it's own with different timing - hence the error message. Commented Jul 16, 2023 at 7:09
  • But I need this instance value again for logout. how can I store this for logout then? Commented Jul 16, 2023 at 7:49
  • Redux is there for data, for something that is not data like this, you should probably have a wrapper component that keeps it in component state and passes it around with a dependency injection mechanism like Context. Commented Jul 16, 2023 at 8:55
  • @zacanger Just FYI, adding tags to posts isn't how code syntax highlighting works, you need to actually edit the post's code block fences to specify a language. Commented Jul 17, 2023 at 6:12