Skip to content

Read Functions #16

@fabiancook

Description

@fabiancook

🚀 Feature Proposal

It would be helpful to have a set of functions pre-defined to cover common scenarios.

These functions should not rely purely on @virtualstate/fringe's VNode shape, and instead follow the pattern used in @virtualstate/kdl to be able to read a range of node shapes. This should later be reduced to be directly configurable.

Motivation

Re-implementation of internal functions was required to implement @virtualstate/kdl, this should be reduced.

Example

await childrenSettled(<Example />);
await children(<Example />);
const [child] = await children(<Example />);

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