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

Render middleware to allow rendering orphaned trees outside of the mounted node. #863

Open
matt-gadd opened this issue Nov 25, 2020 · 0 comments

Comments

@matt-gadd
Copy link
Contributor

Enhancement
We currently use offscreen rendering quite a lot in @dojo/widgets to get things such as height of items to determine space for layout. To do this we require rendering things synchronously and not in the mounted tree. An example of that is here: https://github.com/dojo/widgets/blob/92812c620f5edd701af61abecab1deb11680752b/src/list/index.tsx#L254-L263. The problem with this approach is, because it is an isolated renderer, things that rely on a context, such as theme etc do not work within this and their is no way to share contexts across renderers (nor am I sure this should be possible). To solve this it would be nice if we could have a middleware that allowed us to render things outside the existing mount point and sync in the current renderer scope.

@matt-gadd matt-gadd transferred this issue from dojo/widgets Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant