-
Notifications
You must be signed in to change notification settings - Fork 526
Pass props as second argument to resolve() in createInertiaApp() #2485
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
base: master
Are you sure you want to change the base?
Pass props as second argument to resolve() in createInertiaApp() #2485
Conversation
createInertiaApp
Thinking out loud, but wouldn't it be nice if we'd pass the whole page object as a second argument, so that you also have access to the URL, version, etc.? Or doesn't that make sense? |
Actually it does make sense, I mean we would have more context using page instead of props. |
@pascalbaljet it's done thanks for the suggestion. btw I noticed an error in the Coding Standards workflow, I'll open a separated issue for that. |
…onent-function' into add-page-context-to-resolve-component-function # Conflicts: # packages/react/src/createInertiaApp.ts
I think we need to push this PR to the next major release of Inertia. The problem is that it changes the signature of some public methods like |
Re‑attempt of #2330
closes #2400