Skip to content

Why we need pass the record object into page in resource edit action? #1885

Discussion options

You must be logged in to vote

You can get it from operation.record, but that is nilable so you'd have to call operation.record.not_nil! or cast it ever time. We pass the resource in to guarantee we have the value, and the compiler knows the type.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zw963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants