Skip to content

How to re-render only elements that have state changes #301

Answered by sirenkovladd
HEAVYPOLY asked this question in Q&A
Discussion options

You must be logged in to vote

Can you try this code

div({ class: 'f1', style: 'pointer-events:none;position:absolute; left:50%;transform:translateX(-50%);top:1rem;' }, () => `Stroke ${replayState.canvasStrokeIndex} / ${st.canvas.strokesLen}`))

And what parameter from replayState is changed during playback (this will allow me to test locally)?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by HEAVYPOLY
Comment options

You must be logged in to vote
2 replies
@sirenkovladd
Comment options

@HEAVYPOLY
Comment options

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