Comments (10)
May I see your code?
from swift-verge.
This class is inside verge library's test package. I played with it and wonder why that happened?
from swift-verge.
DerivedTests.swift file
from swift-verge.
But ı set counter value again lets say previous is 2, I set 2 again . Still haschanges true. Should not it be haschanges false? In this case prev and current became 2
from swift-verge.
ah I get it.
commit won't make a new state if there is no changes inside commit.
so you can attention to the version property. this means version of the state.
it would be incremented after commit applied.
so means using the same state after empty commit
from swift-verge.
Then it means even if I set the same value, haschanges will not change. In this case for example if it was true then it wll be true. However, version will change right?
from swift-verge.
if you set true and current is true. you will get a new state as new version.
from swift-verge.
commit won't make a new state if there is no changes inside commit.
meaning, you won't get new callback in Store.sinkState
because Store won't make new state.
it differs between commit as empty and commit with same value.
from swift-verge.
thank you. I have been exploring Verge for 3 days. I get so impressed.
from swift-verge.
@BayramInanc thanks for asking. anytime I will help you.
from swift-verge.
Related Issues (20)
- swift _read yield HOT 3
- [Serious problem] The order of the state in a sink will corrupt when created new commit inside the sink synchronously. (Recursive commit)
- CommitLog : Slow HOT 1
- [Bounty] Creates beautiful demo application
- EventEmitter use Array to retain closure instead of Dictionary for performance
- TODO: Make documentations about debugging
- [Feature] AsyncDerived
- [Feature] Async commit
- [Question] Combine stores HOT 1
- Xcode 13 Compile failed HOT 2
- Xcode 13.3 beta-3 compile failed in VergeORM module HOT 1
- State Type HOT 2
- [QUESTION - State History] HOT 1
- really convenient HOT 1
- [On Verge-Orm] HOT 1
- [commit function] HOT 1
- Initializer requires that EventEmitter conform to 'DispatcherType' HOT 6
- Publishing changes from within view updates is not allowed, this will cause undefined behavior. HOT 11
- Few code examples
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 swift-verge.