Skip to content

Design and implement useRef hook for AST node access #200

@rafbcampos

Description

@rafbcampos

Description

Design and implement a useRef hook that allows content authors to access AST nodes directly. This will provide a way for authors to get references to AST nodes for advanced use cases.

Tasks

  • Research optimal approach for exposing AST nodes via refs
  • Implement useRef hook that creates mutable ref objects
  • Create mechanism to attach refs to AST nodes during compilation
  • Determine how refs will be accessed in the generated AST
  • Add tests for ref creation and assignment
  • Document limitations and use cases for refs in DSL context

Acceptance Criteria:

  • useRef creates mutable ref objects
  • Refs can be attached to elements via the ref prop
  • Refs correctly receive AST node references
  • Implementation has test coverage
  • Documentation explains how and when to use refs in the DSL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions