Skip to content

Store: prevState property removed in 0.9.0 (breaking change for tanstack form fields) #296

@jimthedev

Description

@jimthedev

Describe the bug

Hello, I realize that this is still pre-release so maybe this is to be ignored, but wanted to document the change just in case others also ran into this because it seems to have changed the api in tanstack/form since its fieldApi exposes this store.

This PR (0.9.0) removed a previously available public property on the store called prevState which was exposed on fields stores in tanstack form which means I think that this was an unintentional breaking change for tanstack form.

I think this means people relying on this will need to pin to an older version of store or will need to find another way to get the previous value.

Steps to Reproduce the Bug or Issue

Prior to the 0.9.0 release of tanstack/store you could do something like this in tanstack/form

fieldApi.store.prevState?.value

but now prevState is gone

Expected behavior

I expect to continue to be able to use the api so long as I am on the same major version of tanstack/form.

Screenshots or Videos

The change in this PR seems to have removed prevState despite it being exposed publicly (and previously and thus in tanstack form as well).

Image

Platform

  • OS: Any
  • Browser: Any

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions