Code Monkey home page Code Monkey logo

dawei's People

Contributors

odama626 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dawei's Issues

No createAtom

Is this library maintained? The library has no createAtom exported the documentation is incorrect...

Switch get and set order in create api

other state store creation libraries use set first, and since set is more likely to be used and can be used solely it should be first to allow single arg lamdas for ergonomics.

However... set is typically useless for atoms

Remove remaining atom subscription code

There is still code pertaining to subscribing to store inside store creation method with createStore(get => get(otherStore)) this functionality is confusing and completely covered by store.subscribe and should be removed

batch updates where possible

its possible to determine if a state update is a promise, only when it is a promise does it need to be wrapped. otherwise it can be updated immediately so react can batch it on its own. this could be a breaking change though since currently all updates or ordered whether they're async or not. with batching sync updates would be applied first

async function test() {}
undefined
test instanceof Function
true
test() instanceof Promise
true

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.