Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateConfig doesn't seem to work #222

Open
brionmario opened this issue Apr 25, 2024 · 0 comments
Open

updateConfig doesn't seem to work #222

brionmario opened this issue Apr 25, 2024 · 0 comments
Labels
bug Something isn't working Severity/Major

Comments

@brionmario
Copy link
Member

brionmario commented Apr 25, 2024

Describe the issue:

The updateConfig function from the useAuthContext hook, doesn't seem to update the context of the SDK after it's been initialized.

How to reproduce:

Initial SDK Config

{
    storage: "sessionStorage"
}

Update the storage on the fly.

const { updateConfig } = useAuthContext();

updateConfig({
    storage: "webWorker"
});

This doesn't update the SDK to web worker. Validate with React Dev Tools as well.

Expected behavior:

SDK context should be updated.

Environment information (Please complete the following information; remove any unnecessary fields) :

  • SDK Version: 4.0.1
  • OS: Mac
  • Browser: Chrome
@brionmario brionmario added the bug Something isn't working label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Severity/Major
Projects
None yet
Development

No branches or pull requests

1 participant