Skip to content

v0.3.68

Choose a tag to compare

@AmmDuncan AmmDuncan released this 09 May 00:08
· 22 commits to main since this release
  • fix(inject): defer drawer mount to window.load to dodge host hydration. v0.3.67 stopped pitstop from mutating <html>'s style attribute, but the same family of bug remained — pitstop appended <pitstop-drawer> to <body> on DOMContentLoaded, racing the host's React/Vue hydration. The visible symptom in a Next 15 project was a hydration mismatch attributed to the user's own ThemeSwitch component (the next real child React walked past after hitting the unexpected pitstop element). Mount now waits for window.load + a requestAnimationFrame, which lands after the framework's initial hydration cycle in every framework I've checked. Practical delay before the drawer strip appears is a frame or two on most pages — invisible.