Skip to content

Commit

Permalink
refactor(fetch-state-machine): Rename requestSuccess_ method to reque…
Browse files Browse the repository at this point in the history
…stSucceeded_
  • Loading branch information
AliMD committed Sep 26, 2024
1 parent 885a8bc commit 5d0ca73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/remote-context/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export abstract class AlwatrRemoteContextStateMachineBase<T extends Json = Json>
offlineCheck: {
requestFailed: 'failed',
cacheNotFound: 'loading',
requestSuccess: 'reloading',
requestSucceeded: 'reloading',
},
/**
* First loading without any cached context.
*/
loading: {
requestFailed: 'failed',
requestSuccess: 'complete',
requestSucceeded: 'complete',
},
/**
* First loading failed without any cached context.
Expand All @@ -52,7 +52,7 @@ export abstract class AlwatrRemoteContextStateMachineBase<T extends Json = Json>
},
reloading: {
requestFailed: 'reloadingFailed',
requestSuccess: 'complete',
requestSucceeded: 'complete',
},
/**
* Reloading failed with previously cached context exist.
Expand All @@ -69,7 +69,7 @@ export abstract class AlwatrRemoteContextStateMachineBase<T extends Json = Json>
on_offlineCheck_enter: this.offlineRequestAction_,
on_loading_enter: this.onlineRequestAction_,
on_reloading_enter: this.onlineRequestAction_,
on_requestSuccess: this.updateContextAction_,
on_requestSucceeded: this.updateContextAction_,
};
}

Expand Down

0 comments on commit 5d0ca73

Please sign in to comment.