Skip to content

Commit

Permalink
fix: Add initial data population in interactivity router
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Jul 29, 2024
1 parent f50e045 commit 0ed6351
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/interactivity-router/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const regionsToVdom: RegionsToVdom = async ( dom, { vdom } = {} ) => {
}
const title = dom.querySelector( 'title' )?.innerText;
const initialData = parseInitialData( dom );
populateInitialData( initialData );
return { regions, head, title, initialData };
};

Expand Down

0 comments on commit 0ed6351

Please sign in to comment.