GithubHelp home page GithubHelp logo

react-redux support for Overlay about teaset HOT 7 OPEN

rilyu avatar rilyu commented on May 17, 2024 1
react-redux support for Overlay

from teaset.

Comments (7)

supermanxiacheng avatar supermanxiacheng commented on May 17, 2024 1

我瞎写了一通。。。好像可以,但不知道会不会有问题。。。
首先,在App.js 给 赋值store之前,就先在willMount中 global.store = store. 然后把这个global.store给"Provider"用。
然后,其他teaset的组件要用redux的地方,显示赋值 store = {global.store}.
最后,connect ,就可以用了。。。。

You can global.store =store before assgin store to "Provider"
Then assign global.stote to any component in OveaLay you want to use redux.
Finally, You connect the component in OverLay.
@t83714
@zhuanglong

from teaset.

rilyu avatar rilyu commented on May 17, 2024

I did not use react-redux, so it did not support react-redux in Teaset.
It may be better to provide a "assignStore" method in TopView, but I need to verify that it takes a little time.

from teaset.

t83714 avatar t83714 commented on May 17, 2024

Thanks for looking into it. Really love your work. Thought it would be more popular with better redux support. Also wondering which library you used with teaset in terms of state management for your own projects?

from teaset.

ozgurrgul avatar ozgurrgul commented on May 17, 2024

I'd like to now if this will be implemented. Thanks for your efforts.

from teaset.

zhuanglong avatar zhuanglong commented on May 17, 2024

请问有什么好的解决方法吗

from teaset.

supermanxiacheng avatar supermanxiacheng commented on May 17, 2024

还好有老外,提过问了,虽然很尴尬。。。

from teaset.

isllyend avatar isllyend commented on May 17, 2024

我瞎写了一通。。。好像可以,但不知道会不会有问题。。。
首先,在App.js 给 赋值store之前,就先在willMount中 global.store = store. 然后把这个global.store给"Provider"用。
然后,其他teaset的组件要用redux的地方,显示赋值 store = {global.store}.
最后,connect ,就可以用了。。。。

You can global.store =store before assgin store to "Provider"
Then assign global.stote to any component in OveaLay you want to use redux.
Finally, You connect the component in OverLay.
@t83714
@zhuanglong

react-native:0.61.5 按所描述方法添加store无效 @supermanxiacheng 是否可以提供下具体代码 🙏

from teaset.

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.