Capítulo 363 de 988

Chapter 363: reevaluateComposition()

Core Idea

Re-runs calculateMetadata() on the currently selected composition.

Key Concepts

  • Example
  • See also

Code Examples

export const ReevaluateCompositionComp: React.FC = () => {
  const reevaluate = useCallback(async () => {
    reevaluateComposition();

    console.log("Re-evaluated!");
  }, []);

  return <button onClick={reevaluate}>Re-evaluate</button>;
};
  • What it demonstrates: Usage pattern for reevaluateComposition() from the official docs.

Key Takeaways

  1. Understand example when working with reevaluateComposition().
  2. Understand see also when working with reevaluateComposition().

Connects To

  • Clipper: related page in the Studio, Player & Editing section.
  • Design Systems: related page in the Studio, Player & Editing section.
  • Editor Starter: related page in the Studio, Player & Editing section.