Skip to content

[Autocomplete][v1] Using actionBefore prop throws uncaught invariant violation #989

@sdn90

Description

@sdn90

Issue summary

Expected behavior

Should render when using actionBefore prop

Actual behavior

React throws:

main.bundle.js:sourcemap:48448 Uncaught Invariant Violation: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

Steps to reproduce the problem

  1. Click on input

Reduced test case

https://codesandbox.io/s/ov662j63z9

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: 3.6.0
  • Browser: Chrome
  • Device: Macbook
  • Operating System: MacOS 10.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions