Skip to content

v1.1.0

Compare
Choose a tag to compare
@wpdas wpdas released this 03 Apr 08:17
· 85 commits to main since this release
  • feature mockInitialPayload added

During the development, use mockInitialPayload to mock the initial payload (sent by the Widget).

// Mock
import { mockInitialPayload } from 'near-social-bridge'

mockInitialPayload({
  defaultRoom: 'dragon-ball-z',
})

// App
import { useInitialPayload } from 'near-social-bridge/hooks'

const MyComponent = () => {
  const { defaultRoom } = useInitialPayload() // 'dragon-ball-z'
}