Skip to content

Intermact API Reference / @intermact/react / useDeserializedProject

Function: useDeserializedProject()

useDeserializedProject(input, options?): DeserializedProgram

Defined in: react/src/hooks/useDeserializedProject.ts:29

Deserialize a SerializedProject (or share-url string) into a playable DeserializedProgram (design.md §17). Memoized on the input + reduced -motion flag, so a new Player is built only when the project changes. Pass reducedMotion to mount the motion-free (end-state) variant.

Parameters

input

ProjectInput

options?

UseDeserializedProjectOptions = {}

Returns

DeserializedProgram

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)