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

Deps-less way to init #91

Closed
dy opened this issue Sep 9, 2019 · 1 comment
Closed

Deps-less way to init #91

dy opened this issue Sep 9, 2019 · 1 comment

Comments

@dy
Copy link
Owner

dy commented Sep 9, 2019

Since effects are async, there's an easier way to init state, props etc.:

spect(target)
  .state(init)
  .prop(init)
  .use($target => {
    $target.state // read inited state
  })
@dy dy changed the title Depend-less way to init Deps-less way to init Sep 9, 2019
@dy
Copy link
Owner Author

dy commented Sep 13, 2019

Nice catch, keep deps for now. Mb add to #17

@dy dy closed this as completed Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant