DioxusLabs / DioxusLabs/docsite

Memoizing Elements pattern

Open
#541 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Rust
Stars
206
Forks
208
Avg merge
1h 11m
Merged PRs (30d)
3

Description

I like explaining components as memos, but I'm not sure how useful [this pattern](https://dioxuslabs.com/learn/0.7/essentials/basics/effects#derived-elements) is in practice since Elements implement partialEq by pointer:

https://github.com/DioxusLabs/dioxus/blob/a610aaefc384ea2e01f2b72a27f33964d02b6d30/packages/core/src/nodes.rs#L158-L162

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.