Skip to content

Commit

Permalink
Export isBrowser and isIframe from @weaverse/react
Browse files Browse the repository at this point in the history
  • Loading branch information
hta218 committed Jul 8, 2024
1 parent ebe0fd3 commit b0bac4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/hydrogen/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
useParentInstance,
useWeaverse,
type PlatformTypeEnum,
isBrowser,
isIframe
} from '@weaverse/react'
import type {
HydrogenComponentData,
Expand All @@ -24,7 +26,7 @@ export * from './utils'
export * from './weaverse-client'
export * from './wrappers'
export * from './placeholders'
export { useChildInstances, useItemInstance, useParentInstance, useWeaverse }
export { useChildInstances, useItemInstance, useParentInstance, useWeaverse, isBrowser, isIframe }

export class WeaverseHydrogen extends Weaverse {
platformType: PlatformTypeEnum = 'shopify-hydrogen'
Expand Down

0 comments on commit b0bac4f

Please sign in to comment.