Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Listening to non-react updates to the preferences and update the react component #123

Merged
merged 2 commits into from Nov 17, 2020

Conversation

pooyaj
Copy link
Contributor

@pooyaj pooyaj commented Nov 13, 2020

Issue: Looks like users can use savePreferences to update the preferences in the cookie, but that does not update the internal state of our consent manager react component.

Solution: Re-hydrate the state ( by calling reset ) when the dialog opens.

Ref: https://segment.atlassian.net/browse/LIBWEB-482

Copy link

@juliofarah juliofarah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you have a broken test there, but LGTM!

Copy link

@williamgrosset williamgrosset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once test is fixed!

@pooyaj pooyaj merged commit e63972c into master Nov 17, 2020
@pooyaj pooyaj deleted the pj/LIBWEB-482 branch November 17, 2020 23:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants