Skip to content

Request for comment: Remove react palm task middleware requirement - #1583

Draft
chrisirhc wants to merge 2 commits into
keplergl:masterfrom
chrisirhc:remove-react-palm-task
Draft

Request for comment: Remove react palm task middleware requirement#1583
chrisirhc wants to merge 2 commits into
keplergl:masterfrom
chrisirhc:remove-react-palm-task

Conversation

@chrisirhc

@chrisirhc chrisirhc commented Aug 23, 2021

Copy link
Copy Markdown
Collaborator

Here's another attempt at simplifying the react-palm tasks dependency, after discussion in #1577 .
First off, to pull out the middleware requirement of react-palm.

This should simplify installation of kepler.gl . This approach combined with #1577 are approaches to allow for future splitting out side effects/tasks into its own components in the future.

It is safe to run the taskMiddleware twice (if the middleware is added, along with this change), so this is a non-breaking change. That's also why I left enhanceReduxMiddleware in the exports, but now that's a noop.

What users should expect to do:

  • Upgrade with no breaking changes (unless they depend on the promises returned)
  • Remove their taskMiddleware call, or enhanceReduxMiddleware (which is now a noop)
  • In a future breaking change version, the enhanceReduxMiddleware can be removed.

Signed-off-by: Chris Chua <chris.sirhc@gmail.com>
Signed-off-by: Chris Chua <chris.sirhc@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants