【问题标题】:Did anyone have a problem with select filter in react admin?有人在反应管理员中选择过滤器有问题吗?
【发布时间】:2020-07-01 03:17:31
【问题描述】:

我刚遇到 react-admin,我正在做一个测试,在测试中, 我创建了一个过滤器

  <ReferenceInput label="User" source="userId" reference="users" alwaysOn allowEmpty>
      <SelectInput optionText="name" />
  </ReferenceInput>

出现此错误后不久

警告:在渲染不同的组件 (SelectInput) 时无法更新组件 (ReactFinalForm)。要在 SelectInput 中找到错误的 setState() 调用,请按照堆栈跟踪

有人可以帮我吗?

【问题讨论】:

  • 您能否展示更多您的代码 - 特别是它所指的内容。

标签: reactjs


【解决方案1】:

在项目仓库issues中报告,包括codesandbox:Interacting with list filters throws a React update component error

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-28
    • 1970-01-01
    • 1970-01-01
    • 2021-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-16
    相关资源
    最近更新 更多