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

Update README to address Lazy block syntax #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

austenmadden
Copy link

👋 Hey all, wanted to make an addition to the documentation for lazy. This is often a point of discussion in code review for inertia related PRs since it's not immediately clear in documentation that lazy supports a block syntax. Given this is another idiomatic way to pass proc-like behavior in Ruby we feel it should be documented as well.

References to where the block is provided to the Lazy object:

The InertiaRails::Lazy object in addition to passing a lambda or proc
via a positional argument also accepts a block argument. This is another
idiomatic to pass proc-like behavior in Ruby and should be documented as
well.
@austenmadden austenmadden changed the title Update readme to address Lazy block syntax Update README to address Lazy block syntax Oct 15, 2024
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.

1 participant