dojo / dojo/framework

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

Open
#863 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
623
Forks
78
PR merge metrics
No merged PRs in 30d

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.