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

Make usePage a generic #1415

Closed
wants to merge 1 commit into from
Closed

Conversation

lepikhinb
Copy link
Contributor

The fix brings a generic to the usePage method.

Example usage:

const props = usePage<{ notification?: string }>().props;

const notification = props.notification;

@lepikhinb lepikhinb changed the title bring back usePage generic Make usePage a generic Jan 30, 2023
@jessarcher jessarcher self-requested a review February 2, 2023 00:06
@jessarcher
Copy link
Member

Thank you! I ended up going with #1394, which solves the same problem.

@jessarcher jessarcher closed this Feb 2, 2023
@lepikhinb
Copy link
Contributor Author

@jessarcher somehow, I missed your PR when I was looking for a similar one. Thanks!

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