Skip to content

Commit

Permalink
Fix JSX related type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Nov 27, 2024
1 parent 5f7b8da commit 6220211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/toolkit/src/query/tests/cleanup.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ const getSubStateA = () => storeRef.store.getState().api.queries['a(undefined)']
const getSubStateB = () => storeRef.store.getState().api.queries['b(undefined)']

function UsingA() {
const { data } = api.endpoints.a.useQuery()
const { data } = api.endpoints.a.useQuery() as { data: React.ReactNode }

return <>Result: {data} </>
return <>Result: {data}</>
}

function UsingB() {
Expand Down

0 comments on commit 6220211

Please sign in to comment.