【发布时间】:2017-04-05 12:13:06
【问题描述】:
大家好,我有一个这样的容器
export default createContainer((props) => {
console.log('createContainer')
const {id} = props.params
Meteor.subscribe('items')
return {item: Items.findOne(id)}
}, Editor)
在Editor 组件中,我调用了一个meteor 方法并对我在容器中找到的item 进行了一些更改。因此,createContainer 是否不应该重新渲染并再次将项目作为道具传递,以便我从数据库中获得新的更改?或者我在这里错过了什么?反正我可以让它重新运行吗?
【问题讨论】: