Skip to content

[Docs] Unify custom plugin documentation and examples, and modify code #167

@TakhyunKim

Description

@TakhyunKim

TanStack Devtools version

v0.6.14

Framework/Library version

N/A

Describe the bug and the steps to reproduce it

The counter.ts example code in the custom plugins documentation differs from the counter.ts in the example code.
The location for incrementing or decrementing the count must be standardized.

Additionally, the example for the custom plugin increments or decrements count after history.push(count), so it seems we need to reverse this order.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

N/A

Screenshots or Videos (Optional)

custom-plugins docs example code

Image

custom devtools docs example code

Image

Do you intend to try to help solve this bug with your own PR?

Yes, I am also opening a PR that solves the problem along side this issue

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

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