Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark createStore as deprecated, and add legacy_createStore alias #4336

Merged
merged 2 commits into from Apr 18, 2022

Commits on Apr 18, 2022

  1. Copy the full SHA
    051aca0 View commit details
    Browse the repository at this point in the history
  2. Mark createStore as deprecated and add legacy_createStore

    - Updated `createStore`'s doc description to mark it as `@deprecated`,
      so that it shows up with a visual strikethrough in editors.
    - Added new descriptive text to `createStore` to encourage users to
      migrate to RTK, and pointing to the "RTK is Redux Today" docs page
    - Rewrote TS typedefs for `createStore` to define it as a function with
      overloads, rather than a varible, to get correct docs tooltips when
      hovering over variable usages
    - Added `legacy_createStore` API as an alias without the deprecation
    markerikson committed Apr 18, 2022
    Copy the full SHA
    fdf5956 View commit details
    Browse the repository at this point in the history