Giter Club home page Giter Club logo

Comments (10)

muukii avatar muukii commented on May 31, 2024

May I see your code?

from swift-verge.

BayramInanc avatar BayramInanc commented on May 31, 2024

This class is inside verge library's test package. I played with it and wonder why that happened?

from swift-verge.

BayramInanc avatar BayramInanc commented on May 31, 2024

DerivedTests.swift file

from swift-verge.

BayramInanc avatar BayramInanc commented on May 31, 2024

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.

muukii avatar muukii commented on May 31, 2024

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.

BayramInanc avatar BayramInanc commented on May 31, 2024

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.

muukii avatar muukii commented on May 31, 2024

if you set true and current is true. you will get a new state as new version.

from swift-verge.

muukii avatar muukii commented on May 31, 2024

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.

BayramInanc avatar BayramInanc commented on May 31, 2024

thank you. I have been exploring Verge for 3 days. I get so impressed.

from swift-verge.

muukii avatar muukii commented on May 31, 2024

@BayramInanc thanks for asking. anytime I will help you.

from swift-verge.

Related Issues (20)

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.