Closed sot1986 closed 4 months ago
Most of the times that I am reaching for lazyLoading props, I would really appreciate to have the possibility to pass some parameters to the callback. I would propose something like:
router.visit(url, { only: ['user:10'] })
On the backed I would handle like
public function __invoke(Request $request) { return Inertia::render('Users/Page', [ 'users' => fn () => Users::query()->cursorPaginate(), 'user' => Inertia::lazy(fn (User $user) => $user ]; }
Make sense?
Heya, thanks for your proposal. Feel free to attempt a PR so the maintainers can look at actual code that's involved. Thanks
Most of the times that I am reaching for lazyLoading props, I would really appreciate to have the possibility to pass some parameters to the callback. I would propose something like:
router.visit(url, { only: ['user:10'] })
On the backed I would handle like
Make sense?