[3.x] 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