Git Product home page Git Product logo

Comments (7)

fantasticsoul avatar fantasticsoul commented on August 21, 2024

升级到2.5.1即可,最新版本在内部去掉了react-dom依赖.

btw, 欢迎提出更多关于concent搭配react-native的issues

from helux.

roytan883 avatar roytan883 commented on August 21, 2024

@fantasticsoul

Can't find variable: localStorage

concent\src\cc-context\index.js 264:26

RN 官方建议使用
https://github.com/react-native-community/async-storage
这个库好像也支持web

from helux.

fantasticsoul avatar fantasticsoul commented on August 21, 2024

RN 官方建议使用
https://github.com/react-native-community/async-storage
这个库好像也支持web

感谢推荐,升级至2.5.2即可,调整了localStorage的获取策略,在web环境默认是window.localStorage,在rn环境,你需要人工的在run的时候在options参数里传入第三方实现库

import AsyncStorage from '@react-native-community/async-storage';
import { run } from 'concent';

run({
     /** your store config */
  },{
   localStorage: AsyncStorage,
})

from helux.

fantasticsoul avatar fantasticsoul commented on August 21, 2024

你好,现在最新的情况如何了呢

from helux.

roytan883 avatar roytan883 commented on August 21, 2024

不好意思,今天在忙其它的,我明天来测试 2.5.2

from helux.

roytan883 avatar roytan883 commented on August 21, 2024

@fantasticsoul OK,已经可以正常使用了。没有全面测试,但是基本的appCtx.setStateappCtx.moduleComputed.fullName2, appCtx.moduleReducer.changeFirstName都是可以使用的

from helux.

fantasticsoul avatar fantasticsoul commented on August 21, 2024

好的,感谢提供帮助,欢迎继续提供新的issue,有了你们 concent才会越来越好越来越强大

from helux.

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.