-
Hey, are there any plans to use use-context-selector instead of native context to improve the performance? |
Beta Was this translation helpful? Give feedback.
Answered by
Moshyfawn
Mar 25, 2022
Replies: 1 comment
-
I can't say for sure. @bluebill1049 can elaborate further. But RHF strives to be the deps free lib, so I doubt it's gonna make use of the use-context-selector lib at this time. With React 18 coming, there's a chance that the type of optimization the use-context-selector lib brings wouldn't be needed. At least in RHF case. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bluebill1049
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't say for sure. @bluebill1049 can elaborate further. But RHF strives to be the deps free lib, so I doubt it's gonna make use of the use-context-selector lib at this time.
With React 18 coming, there's a chance that the type of optimization the use-context-selector lib brings wouldn't be needed. At least in RHF case.