Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Document "alternate renderers" entry point #1458

Open
markerikson opened this issue Nov 11, 2019 · 4 comments
Open

Docs: Document "alternate renderers" entry point #1458

markerikson opened this issue Nov 11, 2019 · 4 comments
Labels

Comments

@markerikson
Copy link
Contributor

In v7, we added a hard dependency on either react-dom or react-native, because we need to pull in unstable_batchedUpdates. For those users who happen to not be using RD or RN, we added an "alternate renderers" entry point that drops the batching.

This entry point was described in the v7 release notes at https://github.com/reduxjs/react-redux/releases/tag/v7.0.1 , but we do not have it formally documented. We should add some kind of a usage guide page for using RR with other renderers.

This came up in #1457 .

@NickHeiner
Copy link

Good to see this is already supported! I'll be using this for the Netflix TV app, which uses an alternate renderer that works with our smart TV platform.

@NickHeiner
Copy link

NickHeiner commented Apr 9, 2020

In alternate-renderers, I see:

// For other renderers besides ReactDOM and React Native, use the default noop batch function
const batch = getBatch()

I'd actually like the ability to pass in my own batch function. Would you accept a PR for that?

@markerikson
Copy link
Contributor Author

Hmm. Can we do that by exporting whatever internal setBatch function we already have?

@NickHeiner
Copy link

That's what I was planning to do. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants