Skip to content

Commit

Permalink
Trigger the fetchMapboxResults function on the leading edge of the wa…
Browse files Browse the repository at this point in the history
…it interval. (#2280)
  • Loading branch information
farhadsiraj authored Nov 15, 2024
1 parent b77e76c commit d34e00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/hooks/useMapboxGeocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function useMapboxGeocoder() {
dispatch({ type: actionTypes.FETCH_FAILURE, error });
}
},
{ wait: 300 }
{ wait: 300, after: false, before: true }
);

return { error, isLoading, mapboxResults, fetchMapboxResults };
Expand Down

0 comments on commit d34e00f

Please sign in to comment.