Skip to content

Commit

Permalink
Update docs/guide/partial-reloads.md
Browse files Browse the repository at this point in the history
Co-authored-by: Maximilien Pressensé <[email protected]>
  • Loading branch information
skryukov and mpressen committed Oct 25, 2024
1 parent 8d554af commit 6c4acdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/partial-reloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ class UsersController < ApplicationController
users: InertiaRails.always(User.all),

# Also works with block:
# users: InertiaRails.optional { User.all },
# users: InertiaRails.always { User.all },

# Also works with a lambda:
# users: InertiaRails.optional(-> { User.all }),
# users: InertiaRails.always(-> { User.all }),
}
end
end
Expand Down

0 comments on commit 6c4acdd

Please sign in to comment.