Skip to content

Fix all uses of /dist/ in type imports #3516

@markerikson

Description

@markerikson

Per Andrew Branch, these are bad and breaking things:

import type { Api } from '@reduxjs/toolkit/dist/query/apiTypes'

import type {
  QuerySubState,
  SubscriptionOptions,
  QueryKeys,
  RootState,
} from '@reduxjs/toolkit/dist/query/core/apiState'

// etc

They should just import from the packages instead, like @reduxjs/toolkit/query.

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