Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly create store if args is not unitable #332

Open
Rastraponovich opened this issue Jul 24, 2024 · 1 comment
Open

Readonly create store if args is not unitable #332

Rastraponovich opened this issue Jul 24, 2024 · 1 comment
Labels
RFC Some new feature that should be discussed

Comments

@Rastraponovich
Copy link

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); 
}
@sergeysova sergeysova added the RFC Some new feature that should be discussed label Jul 25, 2024
@Rastraponovich
Copy link
Author

for example just add to the top one more check is.unit, if args is false return new combine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Some new feature that should be discussed
Projects
None yet
Development

No branches or pull requests

2 participants