Passing complex object as dependencies to components #2305
Answered
by
ealmloff
cosmincatalin
asked this question in
Q&A
-
How would one go about using, say, an |
Beta Was this translation helpful? Give feedback.
Answered by
ealmloff
Apr 13, 2024
Replies: 1 comment
-
You can implement PartialEq manually with an external props struct (not the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cosmincatalin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can implement PartialEq manually with an external props struct (not the
#[component]
macro). In that manual PartialEq implementation, you can skip diffing that field if you don't need to rerun the component if the field changes