Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const swrOptions: SWRConfiguration<CrossChainOrder | null> = {
revalidateOnFocus: false,
revalidateOnReconnect: false,
refreshWhenOffline: false,
refreshWhenHidden: false,
refreshWhenHidden: true,
refreshInterval(data) {
if (data) {
const isBridgingFinished = BRIDGING_FINAL_STATUSES.includes(data.statusResult.status)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const BRIDGING_FINAL_STATUSES = [BridgeStatus.EXECUTED, BridgeStatus.EXPI

const swrOptions: SWRConfiguration = {
...SWR_NO_REFRESH_OPTIONS,
refreshWhenHidden: true,
refreshInterval: (data) => {
if (data) {
const isBridgingFinished = BRIDGING_FINAL_STATUSES.includes(data.statusResult.status)
Expand Down
Loading