Skip to content

fix: Correct 'useResource' suspense impl#1247

Merged
rschristian merged 1 commit intomasterfrom
fix/use-resource
Mar 3, 2025
Merged

fix: Correct 'useResource' suspense impl#1247
rschristian merged 1 commit intomasterfrom
fix/use-resource

Conversation

@rschristian
Copy link
Copy Markdown
Member

Bit silly, not quite sure how I let this happen.

As useResource didn't force a rerender upon resolving promises, we were relying on a (perhaps problematic) double render in preact-iso, fixed in preactjs/preact-iso#72. Without this fix, content fetches won't trigger a rerender and so all pages will be empty, minus the header as it exists outside the router.

@rschristian rschristian merged commit c70a003 into master Mar 3, 2025
5 checks passed
@rschristian rschristian deleted the fix/use-resource branch March 3, 2025 09:08
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.

2 participants