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

Sharing data in $page #103

Closed
shineability opened this issue Jan 17, 2021 · 2 comments
Closed

Sharing data in $page #103

shineability opened this issue Jan 17, 2021 · 2 comments

Comments

@shineability
Copy link

Reading through the Inertia docs and exploring this demo...

Couldn't help but noticing that in e.g. Layout.vue, shared data is accessed as $page.auth.user instead of $page.props.auth.user (as described in the current docs).

  • Is this a change in the newer version?
  • Also, isn't this more prone to errors because you can overwrite props from the actual page?

Probably missing something :)

@zappzerapp
Copy link

The documentary refers to the latest version of Inertia. Have a look at the upgrade branch

@reinink
Copy link
Member

reinink commented Feb 27, 2021

Yup, this is fixed in #99, which I hope to merge in soon. 👍

@reinink reinink closed this as completed Feb 27, 2021
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

No branches or pull requests

3 participants