Skip to content

Commit

Permalink
Attempt to fix an existing query triggering a request if FetchStatus.…
Browse files Browse the repository at this point in the history
…UNINITIALIZED is given
  • Loading branch information
kertal committed Apr 12, 2023
1 parent 0d153f0 commit 98efa69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,10 @@ export function getDiscoverStateContainer({
/**
* state containers initializing and starting to notify each other about changes
*/
const unsubscribeData = dataStateContainer.subscribe();
const appStateInitAndSyncUnsubscribe = appStateContainer.initAndSync(
savedSearchContainer.getState()
);
const unsubscribeData = dataStateContainer.subscribe();
// updates saved search when app state changes, triggers data fetching if required
const appStateUnsubscribe = appStateContainer.subscribe(
buildStateSubscribe({
Expand Down

0 comments on commit 98efa69

Please sign in to comment.