Skip to content

Commit

Permalink
fix: swallow error in automatic refreshes
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 21, 2023
1 parent 2b994f3 commit d955754
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/data-fetching-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ export const useDataFetchingStore = defineStore('PiniaColada', () => {
nextPrevious.error = error
entry.error.value = error
entry.status.value = 'error'
throw error
})
.finally(() => {
entry.pending = null
Expand Down Expand Up @@ -184,10 +183,6 @@ export const useDataFetchingStore = defineStore('PiniaColada', () => {
...propertiesEntry,
}

// automatically try to refresh the data if it's expired
// TODO: move out of ensure entry. This should be called in specific cases
entry.fetch()

return entry
}

Expand Down

0 comments on commit d955754

Please sign in to comment.