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

V2: Implementing Deferred props #129

Open
PedroAugustoRamalhoDuarte opened this issue Oct 4, 2024 · 0 comments · Fixed by #132
Open

V2: Implementing Deferred props #129

PedroAugustoRamalhoDuarte opened this issue Oct 4, 2024 · 0 comments · Fixed by #132

Comments

@PedroAugustoRamalhoDuarte
Copy link
Contributor

PedroAugustoRamalhoDuarte commented Oct 4, 2024

V2 is coming to Inertia, so let's get ready.

Context

The concept of Deferred props is:

Props that are not evaluated on initial page load but are requested immediately after a page is loaded, automatically.

On the backend, they work similarly to LazyProps, but the key differences lie in how they're handled on the frontend.

Implementation

Probably we can just create an alias to InertiaRails.lazy and create this new feature for grouping props

Group

From advanced-inertia.com

Inertia also lets you group deferred props. This enables you to load certain deferred groups independently from others, so that quicker queries will not have to wait until the slower ones are completed.

We have to implement a group feature too

Source:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant