You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a01e054
Browse filesBrowse the repository at this point in the historyBrowse files
fix(compiler): run an element's ref after its attributes
Refs were emitted ahead of an element's attribute writes. A ref's own
attribute write survived hydration, where setAttribute returns early, but was
overwritten on client creation. Refs are now emitted after attributes and
spread, before children, in both the Babel plugin and the native compiler.
Fixes#3685
DOM output: an element's `ref` now runs after its attributes and spread are applied, and still before its children. A ref's own attribute writes now survive client creation the way they already survived hydration (#3685).
0 commit comments