Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
EDIT : not so relevant after all. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wonder what the best pattern for stable "empty" results is, especially in regards to minimised re-renderings
Variant #1 (Anti-Pattern?)
using a dynamic empty object as result
Variant #2
using a stable empty object
Variant #3
using a default assignment
Variant clearly creates a new result on every hook rerender, which I would consider bad. Which patterns do you recommend?
Beta Was this translation helpful? Give feedback.
All reactions