Skip to content

DOM calculations before rendering the first frame #2312

Answered by JonnyBurger
dsumer asked this question in Q&A
Discussion options

You must be logged in to vote

@dsumer Great, thanks for self-updating the response! 🙌

To give some more context, Remotion will mount the component and allow for measurement even if a delayRender() method is pending. However, as is usual with refs, they are only accessible after the first render.

Additionally Remotion wraps the components in <Suspense>, which could lead to another small delay. But other than that DOM calculations should be possible!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dsumer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants