Skip to content

Commit 1dd6fd0

Browse files
JeanMecheatscott
authored andcommitted
refactor(core): remove temporary resource setter function. (#63097)
Now that G3 has been fully migrated to the new throwing behavior, we don't need that setter anymore. PR Close #63097
1 parent fdce7e2 commit 1dd6fd0

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

packages/core/src/resource/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
*/
88

99
export * from './api';
10-
export {resource, setResourceValueThrowsErrors as ɵsetResourceValueThrowsErrors} from './resource';
10+
export {resource} from './resource';

packages/core/src/resource/resource.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,6 @@ export function resource<T, R>(options: ResourceOptions<T, R>): ResourceRef<T |
8383
);
8484
}
8585

86-
/**
87-
* Private helper function to set the default behavior of `Resource.value()` when the resource is
88-
* in the error state.
89-
*
90-
* This function is intented to be temporary to help migrate G3 code to the new throwing behavior.
91-
*/
92-
export function setResourceValueThrowsErrors(value: boolean): void {
93-
RESOURCE_VALUE_THROWS_ERRORS_DEFAULT = value;
94-
}
95-
9686
type ResourceInternalStatus = 'idle' | 'loading' | 'resolved' | 'local';
9787

9888
/**

0 commit comments

Comments
 (0)