Giter VIP home page Giter VIP logo

Comments (6)

hunshikan avatar hunshikan commented on August 23, 2024

可以混合使用的

from westore.

yz3358 avatar yz3358 commented on August 23, 2024

但是我发现了一个奇怪的现象:

westore利用了globalData.store 来存储一个实例,然而我们的项目里也利用了这个key来存储对象。虽然完全不影响使用(这一点让我们感到非常困惑不解),但是出于稳定性的考虑,我们替换了原先的所有涉及调用“globalData.store”的函数。

但是这样会出现一个问题:当进入小程序的第一个页面时,如果该页面不使用westore的create方法来创建,那么,当跳转到使用westore的页面时,会出现convert circular content to JSON 这个错误。而当我们修改了编译模式,把使用westore的页面放在首位时,这个错误就不会出现了。

于是我们干脆把原本放在首位的页面,也用了westore来创建。这样又出现了第二个问题:从该页面调到原生页面时,会报call stack 超出限制的错误。

最神奇的是,我们刻意的把globalData.store 设为空对象,所有的问题都没有了。

这说明在混合使用页面的时候,是会出现一些问题的。

可以混合使用的

from westore.

dntzhang avatar dntzhang commented on August 23, 2024

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

from westore.

yz3358 avatar yz3358 commented on August 23, 2024

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

所以现在是可以直接用这个取代westore了吗?

from westore.

dntzhang avatar dntzhang commented on August 23, 2024

是的,可以的。

from westore.

yz3358 avatar yz3358 commented on August 23, 2024

是的,可以的。

多谢

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.