Skip to content

Passing complex object as dependencies to components #2305

Answered by ealmloff
cosmincatalin asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

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