Skip to content

Conversation

@pascalbaljet
Copy link
Member

This PR ensures page props are deeply cloned before storing them in browser history, fixing an issue that appears to only occur with Vue.

With Vue's toRef() method, you can create a two-way binding between a component prop and its source object. This allows mutations to sync back to the Inertia Core page object, causing serialization issues.

Fixes #2490.

@pascalbaljet pascalbaljet merged commit 859e164 into master Oct 27, 2025
12 checks passed
@pascalbaljet pascalbaljet deleted the vue-to-ref branch October 27, 2025 16:10
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.

DataCloneError when visiting pages with Vue reactive data in Inertia.js v2.0

2 participants