ImFusion Web SDK

useImFusionState

ts

Returns the SDK initialization state.

Both imf and error are nullable. Use this when you need to handle loading, ready, and error states in a single component.

Returns

ImFusionState

The current ImFusionState

Throws

If called outside of an ImFusionProvider

Example

tsx

See