Skip to content

Commit 544b125

Browse files
committed
fix BC in ShowContext, EditContext and ChoicesContext types
1 parent 9ac843c commit 544b125

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/ra-core/src/controller/edit/useEditController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ export interface EditControllerBaseResult<RecordType extends RaRecord = any>
327327
defaultTitle?: string;
328328
isFetching: boolean;
329329
isLoading: boolean;
330-
isPaused: boolean;
331-
isPlaceholderData: boolean;
330+
isPaused?: boolean;
331+
isPlaceholderData?: boolean;
332332
refetch: UseGetOneHookValue<RecordType>['refetch'];
333333
redirect: RedirectionSideEffect;
334334
resource: string;

packages/ra-core/src/controller/show/useShowController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ export interface ShowControllerBaseResult<RecordType extends RaRecord = any> {
171171
defaultTitle?: string;
172172
isFetching: boolean;
173173
isLoading: boolean;
174-
isPaused: boolean;
175-
isPlaceholderData: boolean;
174+
isPaused?: boolean;
175+
isPlaceholderData?: boolean;
176176
resource: string;
177177
record?: RecordType;
178178
refetch: UseGetOneHookValue<RecordType>['refetch'];

packages/ra-core/src/controller/useReference.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export interface UseReferenceResult<
2121
ErrorType = Error,
2222
> {
2323
isLoading: boolean;
24-
isPaused: boolean;
24+
isPaused?: boolean;
2525
isPending: boolean;
26-
isPlaceholderData: boolean;
26+
isPlaceholderData?: boolean;
2727
isFetching: boolean;
2828
referenceRecord?: RecordType;
2929
error?: ErrorType | null;

packages/ra-core/src/form/choices/ChoicesContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export type ChoicesContextBaseValue<RecordType extends RaRecord = any> = {
2020
hideFilter: (filterName: string) => void;
2121
isFetching: boolean;
2222
isLoading: boolean;
23-
isPaused: boolean;
24-
isPlaceholderData: boolean;
23+
isPaused?: boolean;
24+
isPlaceholderData?: boolean;
2525
page: number;
2626
perPage: number;
2727
refetch: (() => void) | UseGetListHookValue<RecordType>['refetch'];

0 commit comments

Comments
 (0)