Why we need pass the record object into page in resource edit action? #1885
Answered
by
jwoertink
zw963
asked this question in
Feature requests & Ideas
-
As added in the following line. I ask this question just because curious, because i consider this is not necessary, we can always get the original object from the operation object use the |
Beta Was this translation helpful? Give feedback.
Answered by
jwoertink
May 7, 2024
Replies: 1 comment
-
You can get it from |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zw963
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can get it from
operation.record
, but that is nilable so you'd have to calloperation.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.