Code Monkey home page Code Monkey logo

Comments (8)

DeyiXu avatar DeyiXu commented on May 20, 2024 2

mark,2020-04-08 18:18:49

直接写不好使,必须写在setTimeout里面
https://github.com/Tencent/westore/blob/master/packages/westore/app.js#L18-L22

from westore.

dutedehuai avatar dutedehuai commented on May 20, 2024

setTimeout没问题

from westore.

zlj130137 avatar zlj130137 commented on May 20, 2024

一样的问题

from westore.

Chen-Sanjia avatar Chen-Sanjia commented on May 20, 2024

onLaunch的时候还没执行create,store上还没有update函数

from westore.

JaimeCheng avatar JaimeCheng commented on May 20, 2024

一样的问题

from westore.

jhd124 avatar jhd124 commented on May 20, 2024

你可以去看store.js导出的对象里根本没有update这个方法的,这个方法是在第一个套了create的页面初始化了才被挂上去的,所以加了个timeout就没问题,直接调用就报错。
看得出来腾讯这个项目有点儿闹着玩的意思,虽然idea是好的,但是想在真正的产品里用这个东西还是得自己fork一份改改,好在代码不长

from westore.

dntzhang avatar dntzhang commented on May 20, 2024

fork改改之后记得 pr啊

from westore.

dntzhang avatar dntzhang commented on May 20, 2024

看下的项目 https://github.com/Tencent/omi/tree/master/packages/omi-mp-create

from westore.

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.