【问题标题】:Meteor React createContainer rerenderMeteor React createContainer 重新渲染
【发布时间】: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 是否不应该重新渲染并再次将项目作为道具传递,以便我从数据库中获得新的更改?或者我在这里错过了什么?反正我可以让它重新运行吗?

【问题讨论】:

    标签: reactjs meteor


    【解决方案1】:

    抱歉,问题不在此。 问题是我将值放在 textarea 中而不是使用值。

    【讨论】:

      猜你喜欢
      • 2017-10-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-29
      • 1970-01-01
      • 2021-12-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多