-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: fix reentrant error with ReadableStreams in RSC
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
packages/hydrogen/src/foundation/ShopifyProvider/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- This file is generated from source code in the Shopify/hydrogen repo. Edit the files in /packages/hydrogen/src/foundation/ShopifyProvider and run 'yarn generate-docs' at the root of this repo. For more information, refer to https://github.com/Shopify/shopify-dev/blob/master/content/internal/operations/hydrogen-reference-docs.md. --> | ||
|
||
The `ShopifyProvider` component wraps your entire app and provides support for hooks. | ||
You should place it in your app's entry point component. For example, `<App>`. | ||
|
||
## Example code | ||
|
||
```tsx | ||
import {ShopifyProvider} from '@shopify/hydrogen'; | ||
import shopifyConfig from '../shopify.config'; | ||
|
||
export default function App() { | ||
return ( | ||
<ShopifyProvider shopifyConfig={shopifyConfig}> | ||
{/* Routes, Pages, etc */} | ||
</ShopifyProvider> | ||
); | ||
} | ||
``` | ||
|
||
## Component type | ||
|
||
The `ShopifyProvider` component is a shared component, which means that it renders on both the server and the client. For more information about component types, refer to [React Server Components](/custom-storefronts/hydrogen/framework/react-server-components). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters