calmm-js / kefir.atom Goto Github PK
View Code? Open in Web Editor NEWComposable and decomposable reactive state with lenses and Kefir
License: MIT License
Composable and decomposable reactive state with lenses and Kefir
License: MIT License
Generalize Molecule
to work with plain properties in the template so that they are simply ignored when being written.
urlhash.onValue((value) => rootAtom.lens('urlhash').set(value))
any alternative or shortcut?
Hello,
There's an issue while creating production build with script provided by create-react-app.
Console output:
yarn build v0.27.5
$ node scripts/build.js
Creating an optimized production build...
Failed to compile../node_modules/kefir.atom/dist/kefir.atom.es.js
Module parse failed: /Users/user/Projects/project/client/node_modules/kefir.atom/dist/kefir.atom.es.js Cannot read property '0' of undefined
You may need an appropriate loader to handle this file type.
TypeError: Cannot read property '0' of undefined
at Array.forEach ()error Command failed with exit code 1.
Checked you'r babel configuration in karet-shopping-cart and configured my the same way:
"babel": {
"presets": [
"react-app",
["es2015", {"modules": false}],
"stage-3"
],
"plugins": [
"transform-react-constant-elements"
]
},
But unfortunately error still exist.
Thanks for help :)
Seems like there's some issue with Kefir's .toPromise()
when working with atoms, as the returned promise is always pending
.
U.atom('foo').toPromise() // pending
U.atom('foo').toProperty().toPromise() // pending
U.atom('foo').toProperty(() => 'bar').toPromise() // pending
Hi!
Please pay your attention at bundle size: https://bundlephobia.com/[email protected]
Bigest part of bundle just 3 methods of partial.lenses. Can u avoid it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.