Skip to content

Make Polaris StrictMode compliant #785

@jineshshah36

Description

@jineshshah36

Issue summary

Currently, there are many components that are not StrictMode compliant within Polaris because they using the legacy context API or use deprecated lifecycle methods. Given that React 16.7 will support a concurrent mode which should hopefully improve application performance for most situations, it would be great if Polaris because StrictMode compliant so that we could use it in the future without issue.

Expected behavior

Polaris should be StrictMode compliant

Actual behavior

Polaris is not StrictMode compliant

Steps to reproduce the problem

  1. Wrap Polaris components with the <React.StrictMode></React.StrictMode> component
  2. The console will begin spitting out errors.

Reduced test case

N/A

Specifications

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions