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
{{ message }}
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
As I was building the guides for hydrogen 2, some of the feedback I received was that wrapping the whole app in just to use the Shop Pay button felt strange.
Snooping on the code a bit, it looks like the only code that is being pulled from the provider is the shop ID.
Describe the solution you'd like
Include 2 ways to use Shop Pay button (and other components where it makes sense).
If wrapped in a Provider, you don't need to pass in props like shop ID.
If not wrapped in a Provider, you can pass in props to the component.
Additional context
I think the overall goal is to have something copy/pasteable that works in any context.
The text was updated successfully, but these errors were encountered:
As I was building the guides for hydrogen 2, some of the feedback I received was that wrapping the whole app in just to use the Shop Pay button felt strange.
Snooping on the code a bit, it looks like the only code that is being pulled from the provider is the shop ID.
Describe the solution you'd like
Include 2 ways to use Shop Pay button (and other components where it makes sense).
If wrapped in a Provider, you don't need to pass in props like shop ID.
If not wrapped in a Provider, you can pass in props to the component.
Additional context
I think the overall goal is to have something copy/pasteable that works in any context.
The text was updated successfully, but these errors were encountered: