Skip to content

[RTK Query] Documentation for useLazyQuery's data field #4094

Open
@JeonJaewon

Description

@JeonJaewon

Hello.
As a newbie to rtk-query, I found the official documentation for useLazyQuery a bit confusing while trying to apply it to my project.

In the description, it says the following about data.

Returns the latest request status and cached data from the Redux store

When I first read this description, I thought that data always tries to read the cached values from the store, regardless of whether the trigger is fired or not.

After running it myself, I realized that it was describing the behavior after the trigger.

English isn't my first language, so I'm not 100% sure, but is it just me or is this documentation confusing?
If so, is it okay to write a PR to clarify this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions