Open
Description
- I run
createInstance
on both server and client to get optimizelyclient
. - I run
client.setUser({ id: userId })
with the same user id and attributes on both server and client. - I use
<OptimizelyProvider optimizely={client} user={{ id: userId }}>
and both server (withisServerSide
prop) and client. - I use
useDecision
hook on both server and client and use the deriveddecision
to rendertrue
orfalse
if feature flag is disabled or not. - Sometimes I get the mismatch between SSR and CSR.
I have tried to run client.decideAll()
to get serialisable decisions on the server and tried to supply it to client-side created instance of the client, but I could not find a way to do it. Can you help?