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

customData from the Analytics.Provider is undefined in the useAnalytics.subscribe() functions #2225

Closed
mattrosno opened this issue Jun 7, 2024 · 1 comment · Fixed by #2224
Assignees

Comments

@mattrosno
Copy link

What is the location of your example repository?

No response

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2024.4.3

What version of Remix are you using?

2.1.0

Steps to Reproduce

Per the docs, you can pass custom data into the Analytics.Provider like:

<Analytics.Provider
  cart={data.cart}
  shop={data.shop}
  consent={data.consent}
  customData={{foo: 'bar'}}
>

Expected Behavior

That should populate the data.customData object in the useAnalytics subscribe events.

Actual Behavior

data.customData is undefined.

image

Bug confirmation: #1789 (comment)

@wizardlyhel
Copy link
Contributor

Thank you for creating an issue to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants