Updated useClient and useTreatments to re-render on SDK events, following the same logic than SplitClient and SplitTreatments components: they update by default on SDK_READY and SDK_READY_FROM_CACHE events, but not on SDK_UPDATE and SDK_READY_TIMED_OUT events.
React SDK
What did you accomplish?
useClient
anduseTreatments
to re-render on SDK events, following the same logic thanSplitClient
andSplitTreatments
components: they update by default on SDK_READY and SDK_READY_FROM_CACHE events, but not on SDK_UPDATE and SDK_READY_TIMED_OUT events.How do we test the changes introduced in this PR?
Extra Notes