Skip to content

fix: read hydrated permissions on first Solid, Svelte, and Vue render - #55

Open
martijn00 wants to merge 2 commits into
letstri:mainfrom
martijn00:fix/hydrate-first-render-ssv
Open

fix: read hydrated permissions on first Solid, Svelte, and Vue render#55
martijn00 wants to merge 2 commits into
letstri:mainfrom
martijn00:fix/hydrate-first-render-ssv

Conversation

@martijn00

Copy link
Copy Markdown
Contributor

Summary

Solid, Svelte, and Vue used to subscribe to setup/ready in an effect, so the first paint after dehydrate or after setup() before mount could miss the rules that were already there. They now subscribe during render (Solid createRenderEffect, Svelte onDestroy instead of $effect, Vue tests covering the same first-paint path).

Dehydrated boolean checks show up on the first render. isReady is true immediately when setup() already ran. Independent of the React/Next stack — can merge against main as soon as CI is green.

Test plan

  • pnpm --filter permix exec vitest run src/solid src/svelte src/vue
  • Confirm hydrate fixtures show true:false (allowed + not ready) on first render

Subscribe to setup/ready during render instead of after an effect so dehydrated booleans and already-initialized rules are visible on the first paint.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@martijn00 is attempting to deploy a commit to the letstri Team on Vercel.

A member of the Team first needs to authorize it.

Toolchain skills from skills.sh fail format check and are not project source.

Co-authored-by: Cursor <cursoragent@cursor.com>
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