Skip to content

Defer synchronous render calls#132

Open
JoviDeCroock wants to merge 1 commit into
masterfrom
defer-renders
Open

Defer synchronous render calls#132
JoviDeCroock wants to merge 1 commit into
masterfrom
defer-renders

Conversation

@JoviDeCroock
Copy link
Copy Markdown
Member

This defers synchronous render calls to be delayed by a microtask, this counter-acts i.e. signals causing a direct update which exits one preact render cycle for the next. A common cause could also be the effect queue being flushed before the next render cycle starts and hence losing track of the currentComponent in shared signals/hooks installations.

@github-actions
Copy link
Copy Markdown

Size Change: +562 B (+14.06%) ⚠️

Total Size: 4.56 kB

📦 View Changed
Filename Size Change
dist/preact-custom-element.esm.js 1.5 kB +180 B (+13.62%) ⚠️
dist/preact-custom-element.js 1.49 kB +189 B (+14.49%) ⚠️
dist/preact-custom-element.umd.js 1.56 kB +193 B (+14.08%) ⚠️

compressed-size-action

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

Successfully merging this pull request may close these issues.

1 participant