Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onViewReadySuspense hook #127

Merged
merged 2 commits into from
Mar 1, 2024
Merged

Add onViewReadySuspense hook #127

merged 2 commits into from
Mar 1, 2024

Conversation

floryst
Copy link
Collaborator

@floryst floryst commented Feb 22, 2024

Add a suspense-aware hook for when the view is ready. onViewReadySuspense(getter) will evaluate getter and return the result when the view is mounted.

@floryst
Copy link
Collaborator Author

floryst commented Feb 22, 2024

I'm not ready to merge this just yet, since I think there is one issue with how I'm handling suspense.

@floryst floryst marked this pull request as draft February 22, 2024 18:34
Add an example usage for how to use the useViewReadySuspense hook.
@floryst floryst marked this pull request as ready for review March 1, 2024 22:37
@floryst floryst merged commit c4e287e into beta Mar 1, 2024
@floryst floryst deleted the suspense-hook branch March 1, 2024 22:37
@jourdain
Copy link
Collaborator

jourdain commented Mar 1, 2024

🎉 This PR is included in version 2.0.0-beta.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants