Skip to content

Readonly create store if args is not unitable #332

@Rastraponovich

Description

@Rastraponovich

Sometimes needed readonly store from incoming arguments outside, in factories functions for examle.
How can a solution be processed inside a function an argument that is not a unit by creating a unit from it

there is now:

const someFunction(arg1:number, arg2:string) {
    const $store = readonly(createStore(arg1)); 
}

and how can it be:

const someFunction(arg1:number, arg2:string) {
    const $store = readonly(arg1); 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCSome new feature that should be discussed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions