Problem
Yew use_state setter causes re-render when same value is set
Steps To Reproduce
Use a use_effect that sets None value to use_state setter when the value already is None
Here is a small repo with the problem:
https://github.com/voidpumpkin/yew-playground/tree/use-state-setter-compare-problem
Expected behavior
Not to re-render
Screenshots
Not the problem but the representation of the example project already running:

Guess of how to fix
I think use_state type T would have to implement PartialEq trait.
Then before creating a new pointer to "new" value, it first would check if the value actually changed.
I believe i can try to fix this, just let me know there would be a green light for it.
Environment:
- Yew version: [
master]
- Rust version: [
1.55.0,]
- Target, if relevant: -
- Build tool, if relevant: -
- OS, if relevant: -
- Browser and version, if relevant:-
Questionnaire
Problem
Yew
use_statesetter causes re-render when same value is setSteps To Reproduce
Use a
use_effectthat setsNonevalue touse_statesetter when the value already isNoneHere is a small repo with the problem:
https://github.com/voidpumpkin/yew-playground/tree/use-state-setter-compare-problem
Expected behavior
Not to re-render
Screenshots

Not the problem but the representation of the example project already running:
Guess of how to fix
I think
use_statetypeTwould have to implementPartialEqtrait.Then before creating a new pointer to "new" value, it first would check if the value actually changed.
I believe i can try to fix this, just let me know there would be a green light for it.
Environment:
master]1.55.0,]Questionnaire