Skip to content

Transition FSCache to use createListenerMiddleware() from @reduxjs/toolkit #676

@nelsonni

Description

@nelsonni

Is your feature request related to a problem? Please describe.
The current FSCache relies on cache Redux Middleware in order to intercept and react to dispatching actions before they reach the reducers. However, with v1.8.0 of @reduxjs/toolkit there is a new alternative in the form of createListenerMiddleware.

Describe the solution you'd like
Replace the custom-built cache Redux Middleware with the new createListenerMiddleware.

Describe alternatives you've considered
Keeping the custom middleware in place for the foreseeable future is an alternative, but eventually there is likely to be very useful updates to createListenerMiddleware and taking advantage of those would still require making this transition.

Additional context
There are several issues that tracked the development of this new API, including:

Metadata

Metadata

Assignees

Labels

featureFeature requests or improvements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions