Comments (7)
升级到2.5.1
即可,最新版本在内部去掉了react-dom
依赖.
btw, 欢迎提出更多关于concent
搭配react-native
的issues
from helux.
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.
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.
你好,现在最新的情况如何了呢
from helux.
不好意思,今天在忙其它的,我明天来测试 2.5.2
from helux.
@fantasticsoul OK,已经可以正常使用了。没有全面测试,但是基本的appCtx.setState
,appCtx.moduleComputed.fullName2
, appCtx.moduleReducer.changeFirstName
都是可以使用的
from helux.
好的,感谢提供帮助,欢迎继续提供新的issue,有了你们 concent才会越来越好越来越强大
from helux.
Related Issues (20)
- [RFC] 提供启用/禁用派出计算的API` enableMutates(true/false)` HOT 4
- TypeError: Cannot destructure property 'STATE_SHARED_KEY_MAP' of 't' as it is undefined. HOT 1
- [BUG] 对share对象的一部分进行 useAtom 访问时,出现意外行为 HOT 2
- [Feature] lifecycle HOT 2
- [Optimize] merge triggered non-first-level watch if they have same fnKey HOT 1
- derive 提示用户依赖需提前声明,否则会照成依赖丢失 HOT 2
- derive 派生函数如何捕获状态中可选链的依赖问题(How does the derived function capture the dependency problem of optional chaining in the state?) HOT 1
- [FEATURE] 开发一个跟踪调试插件 HOT 1
- 是否能提供 Perf Benchmark 测试报告? HOT 1
- [❤️ Sponsor] 小小鼓励,给予开发者更多动力
- [Feature] useLocalAtom
- [RoadMap] helux-2024 roadmap
- [FEATURE] 为`runMutateTask`提供入参`extraArgs`来传递给`mutate`的`task` HOT 1
- 无法控制布尔Boolean的展示 HOT 1
- [question] stopArrDep 具体行为 HOT 2
- sharex文档页访问404
- share 通过ctx调用setState 操作数组新增删除操作数组数据依赖收集无效 HOT 3
- 是否可以添加销毁mutate功能 HOT 3
- [RFC] 为响应式对象更新引入严格模式 HOT 4
- [提示] 关于死循环检测 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helux.