Skip to content

Commit d0f5e08

Browse files
committed
Merge branch 'master' of https://github.com/reduxjs/redux-toolkit into withTypes
2 parents 5d802e0 + 904ef2b commit d0f5e08

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/usage/nextjs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ The App Router has four seperate caches including `fetch` request and route cach
386386
export const dynamic = 'force-dynamic'
387387
```
388388

389-
After a mutation you should also invalidate the cache by calling (`revalidatePath`)[https://nextjs.org/docs/app/api-reference/functions/revalidatePath] or (`revalidateTag`)[https://nextjs.org/docs/app/api-reference/functions/revalidateTag] as appropriate.
389+
After a mutation you should also invalidate the cache by calling [`revalidatePath`](https://nextjs.org/docs/app/api-reference/functions/revalidatePath) or [`revalidateTag`](https://nextjs.org/docs/app/api-reference/functions/revalidateTag) as appropriate.
390390

391391
### RTK Query
392392

packages/toolkit/src/createSlice.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ interface AsyncThunkCreator<
350350
State,
351351
CurriedThunkApiConfig extends PreventCircular<AsyncThunkConfig> = PreventCircular<AsyncThunkConfig>
352352
> {
353-
<ThunkArg extends any, Returned = unknown>(
353+
<Returned, ThunkArg = void>(
354354
payloadCreator: AsyncThunkPayloadCreator<
355355
Returned,
356356
ThunkArg,
@@ -369,8 +369,8 @@ interface AsyncThunkCreator<
369369
CurriedThunkApiConfig
370370
>
371371
<
372-
ThunkArg extends any,
373-
Returned = unknown,
372+
Returned,
373+
ThunkArg,
374374
ThunkApiConfig extends PreventCircular<AsyncThunkConfig> = {}
375375
>(
376376
payloadCreator: AsyncThunkPayloadCreator<

packages/toolkit/src/tests/createSlice.typetest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ const value = actionCreators.anyKey
666666
}
667667
),
668668
testExplicitType: create.asyncThunk<
669-
TestArg,
670669
TestReturned,
670+
TestArg,
671671
{
672672
rejectValue: TestReject
673673
}

0 commit comments

Comments
 (0)