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

Wired up initial values support #18

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Conversation

joshuaostrom-cb
Copy link
Contributor

What changed? Why?
We were missing the ability to pass initial values on the provider. This PR adds two:

  • initialCookieValues
  • initialGPCValue

These are useful for server side rendering flows where the values can be initialized ahead of client rendering. Note that this PR does not yet refactor our liberal use of typeof window === 'undefined' throughout the codebase. We will dedicate a follow up PR to proper hydration.

Notes to reviewers

How has it been tested?
Added additional unit testing.

Copy link

@snehkoul-cb snehkoul-cb left a comment

Choose a reason for hiding this comment

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

LGTM!

@joshuaostrom-cb joshuaostrom-cb merged commit c27a9a2 into main Jun 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants