Skip to content

deprecate redux and introduce zustand or redux/toolkit. and use tanstack/query for requests. #257

@mustaphaturhan

Description

@mustaphaturhan

Description

What kind of feature you are suggesting?

Currently, we are using old redux version which is not have "amazing" typescript support. We have to write every type manually which is not good at all. There are better options at the moment like zustand or redux/toolkit.

We can use:

  • @reduxjs/toolkit which already have rtk query. We can build queries by using @reduxjs/toolkit/query/react which creates automatic hooks. Or,
  • We can introduce zustand for global state management which is more easier than redux since it has lesser boilerplate and tanstack/query for request management which has amazing cache support.
  • We can completely get rid of global state management but I can't say we don't need it because we want to control map from other components as well and tanstack/query for request management which has amazing cache support.

Does it solve any problem?

  • Better cache management
  • More modern structure for a single page application

Screenshots

No response

Additional information

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions