We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (process.env.NODE_ENV !== 'production') { middleware.push( createLogger({ collapsed: true, diff: true, duration: true, logErrors: true, }), ) }
store.init({ compose: 'redux-devtools', middleware, persist: [ { version: 1, key: home-${process.env.NODE_ENV}, maxAge: 60 * 60 * 1000, engine: taroStorage, models: [homeModel], }, { version: 1, key: cate-${process.env.NODE_ENV}, maxAge: 60 * 60 * 1000, engine: taroStorage, models: [cateModel], }, ], })
home-${process.env.NODE_ENV}
cate-${process.env.NODE_ENV}
我想在homeModel中监控到有新数据时, 动态更新 home-${process.env.NODE_ENV} 这个Key的缓存, 请问怎么样在 homeModel 中实现?
The text was updated successfully, but these errors were encountered:
homeModel如果有操作更新,缓存那边也是自动更新的。 所以你说的动态更新和我想的不一样吗,能否具体描述一下?
Sorry, something went wrong.
No branches or pull requests
if (process.env.NODE_ENV !== 'production') {
middleware.push(
createLogger({
collapsed: true,
diff: true,
duration: true,
logErrors: true,
}),
)
}
store.init({
compose: 'redux-devtools',
middleware,
persist: [
{
version: 1,
key:
home-${process.env.NODE_ENV}
,maxAge: 60 * 60 * 1000,
engine: taroStorage,
models: [homeModel],
},
{
version: 1,
key:
cate-${process.env.NODE_ENV}
,maxAge: 60 * 60 * 1000,
engine: taroStorage,
models: [cateModel],
},
],
})
我想在homeModel中监控到有新数据时, 动态更新
home-${process.env.NODE_ENV}
这个Key的缓存, 请问怎么样在 homeModel 中实现?The text was updated successfully, but these errors were encountered: