我正在尝试将redux-orm实现到一个应用程序中,但仍然存在问题。我基于github上的redux-orm-primer我现在的问题是"schema.register不是一个函数“。代码如下:
import ORM from 'redux-orm';
...
export const schema = new ORM();
schema.register(Client, Budget, Category, Subcategory);有没有人能让它工作,你能分享一些见解或代码吗?这非常令人沮丧。
发布于 2019-10-09 02:58:27
这与shown on the redux-orm home page中的ORM导入不同。
如果你指的是Tommi's redux-orm-primer,它也不在那里。
正确的导入是:
import { ORM } from 'redux-orm'https://stackoverflow.com/questions/58292328
复制相似问题