Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Drop access to props.value to avoid bugs #121

@malte-wessel

Description

@malte-wessel

Explain the problem

Right now it is possible the access the props' current value by calling props.value.
This might lead to bugs where a property is updated, but we still have an old reference to it.
We should find a way to deny access to this property.

// Dangerous!
const List = ({ props }) => {
    const { items } = props.value;
    return combine({
        items
    });
};

// Correct way
const List = ({ props }) => {
    const items = props.pipe(pluck('items'));
    return combine({
        items
    });
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions