Skip to content

testing msw V.2 update #9

Open
@4brownie

Description

@4brownie

Working with the new version V.2 of msw, does not react the same as V.1. I have ran into issues with the HttpResponse.json() and not seeing the data returned from const {data, isLoading} = useHook(). I see data is undefined and isLoading true when call is made (expected), the isLoading goes to false after my await waitFor(()=>{}) but I do not see my object return in the data.
Not sure if you are actively using the tanstack/react-query and msw V.2 yet, but if are, would be cool to see how you made it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions