Comments (2)
router.reload
preserves state by default and cannot be changed, see https://github.com/inertiajs/inertia/blob/c7b329c1ab284c33bace85198615b7b0cc597f3d/packages/core/src/router.ts#L509-L511
from inertia-modal.
Thanks for clarifying that.
I think then that the momentum-modal package must have different behaviour to begin with, where everything on the page was rehydrated/remounted, hence why my usage of router.reload appeared to refresh the entire state.
Will close this, as this does look to be the correct behaviour by the book.
from inertia-modal.
Related Issues (13)
- Erroneous Redirect Causing Infinite Modal Loop Description HOT 1
- Can't get the modal to open HOT 4
- Modal Routes Returning Plain JSON HOT 12
- Preserve backdrop state and scroll HOT 1
- HTTP Resources - Inconsistent data wrapping HOT 3
- What's different from momentum-modal? HOT 1
- Pagination in Modal HOT 3
- Please support inertia-laravel v1.0 HOT 3
- Enhancement: accept `Arrayable`'s in Inertia::modal() HOT 8
- All Inertia requests must receive a valid Inertia response, however a plain JSON response was received. HOT 5
- "Reference Error: document is not defined" when starting Inertia SSR server HOT 2
- Thank you!! Great package!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inertia-modal.