Coder Social home page Coder Social logo

Comments (5)

eddyerburgh avatar eddyerburgh commented on May 28, 2024 1

Yeah, update runs all the watchers, and trigger runs update. The reason I ran the watchers was to fix with this issue - #64.

Temporary solution is to use 1.14.0 until I come up with a solution

from avoriaz.

eddyerburgh avatar eddyerburgh commented on May 28, 2024 1

This should be fixed in 2.4.1

Only watchers that match the value changed will run

from avoriaz.

jackysee avatar jackysee commented on May 28, 2024

The case is still the same if I switch the dispatch to:

wrapper.vm.change();
wrapper.update();

from avoriaz.

jackysee avatar jackysee commented on May 28, 2024

I need to have shallow for other case. I now just check the vm values.

wrapper.vm.change();
t.is(wrapper.vm.dateValue2.toISOString(), new Date(2017, 5, 21).toISOString(), 'dateValue2 after');

from avoriaz.

eddyerburgh avatar eddyerburgh commented on May 28, 2024

Ok, I'm going to fix this issue.

I'm going to remove running the watchers from update and only use it in setProps and setData, which is where it is needed. I'll only run watchers for values that have been mutated by setProps and setData.

from avoriaz.

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.