You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing the SDK key into createInstance we saw memory leaks happening. In the react-sdk it's advised not to pass the SDK key in, and I think that the javascript-sdk documentation should be updated to provide a similar warning for the section in node.js.
@dbridenbeck , yes, for server side rendering, Javascript sdk should have similar restrictions as react sdk. We will look into this a bit further and update this issue accordingly.
Is there an existing issue for this?
SDK Version
4.9.2
Current Behavior
When passing the SDK key into
createInstance
we saw memory leaks happening. In the react-sdk it's advised not to pass the SDK key in, and I think that the javascript-sdk documentation should be updated to provide a similar warning for the section in node.js.Current documentation: https://github.com/optimizely/javascript-sdk?tab=readme-ov-file#use-the-javascript-sdk-node
Expected Behavior
Expected documentation is to be a-la react-sdk: https://github.com/optimizely/react-sdk?tab=readme-ov-file#server-side-rendering
Steps To Reproduce
SDK Type
Browser
Node Version
16.10.0
Browsers impacted
n/a
Link
No response
Logs
No response
Severity
Minor issue
Workaround/Solution
Pass dataFile instead of SDK into
createInstance()
Recent Change
Not certain.
Conflicts
Not likely, although we are on next 12.
The text was updated successfully, but these errors were encountered: