Link onSuccess prop doesn't include TypeScript typing for page param #1729
Unanswered
Kaishiyoku
asked this question in
Help (React)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've built a small newsfeed where I can load more data by clicking on a button. This button basically is a Link component with additional flags set and data is being stored via the onSuccess prop which works well under JavaScript but under TypeScript the BaseInertiaLinkProps type doesn't have a param set for the onSuccess method.
Example code:
Using TypeScript I get the following type error:
Beta Was this translation helpful? Give feedback.
All reactions