Skip to content

useStore marked as deprecated without clear fix #2203

@Xhale1

Description

@Xhale1

Describe the bug

Seems around v1.33.0 of @tanstack/react-form, useStore was marked as deprecated with the following message

@deprecated — Use useSelector instead.

Tanstack form does not export useSelector unlike the previous useStore. Additionally, the documentation still uses useStore and I couldn't find any details in changelogs.

I'm guessing the upgrade path is to import useSelector directly from tanstack store? Perhaps that could be called out specifically somewhere (both in jsdoc and in the docs).

Your minimal, reproducible example

n/a

Steps to reproduce

n/a

Expected behavior

There's a clear migration path for deprecated funcitonality.

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

n/a

TanStack Form adapter

react-form

TanStack Form version

v1.33.0

TypeScript version

v6.0.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions