Comments (2)
@acusti Good catch.
from todomvc-cycle.
This has been discussed before #14.
propHook
needs this
because that's how hooks work in virtual-dom
. TBH propHook
is a util. Could have been a library, then you wouldn't see the this
at all. It's a virtual-dom
thing, not a Cycle.js thing. I know virtual-dom
is part of Cycle DOM, but still, it's just one driver. Perhaps if we build a new Cycle DOM based on some other virtual DOM library that has a thisless API, then we can achieve that.
The point here is: as far as Cycle.js and RxJS is concerned, ignoring some corner cases in some drivers, there are no this
.
I'll update the docs page to remove the sentence "See it for yourself, this cannot be found in Cycle.js TodoMVC.". But that doesn't mean much in my opinion. You still rarely or never see a this
. What matters most, you don't need to think or reason about this
.
from todomvc-cycle.
Related Issues (20)
- Cursor bugged when moving left with keyboard
- Alternative for route handling? HOT 2
- Why aren't the sources/sinks drivers? HOT 3
- todomvc-cycle becomes very slow with a lot of items (blocking script) HOT 3
- Question about the views HOT 1
- Todo Item intent: `doneEdit` action is fired twice on `keyup:enter`
- Feature Request: Use cycle-history HOT 2
- Question: How would you test the "Todos" component ? HOT 4
- active route button is not highlighted HOT 2
- TaskList does not receive Task actions HOT 3
- hash is removed from route change
- confirming the edition of a task yields an empty task HOT 1
- Use immutable data structures in the Model to speed up perf
- Website link to this project is broken HOT 3
- Publish on tastejs/todomvc ? HOT 1
- compose+merge = one output event? HOT 1
- update link to live example in repository description HOT 1
- Here's an injection flow diagram if you want it HOT 2
- Show completed bug HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from todomvc-cycle.