Skip to content

Commit

Permalink
perf: reduce product price call aggregation delay in SSR (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi authored Sep 6, 2023
1 parent 12a8ca6 commit 2c10245
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class ProductPricesEffects {
ofType(loadProductPrices),
mapToPayloadProperty('skus'),
whenTruthy(),
window(this.actions$.pipe(ofType(loadProductPrices), debounceTime(500))),
window(this.actions$.pipe(ofType(loadProductPrices), debounceTime(SSR ? 20 : 500))),
mergeMap(window$ =>
window$.pipe(
toArray(),
Expand Down

0 comments on commit 2c10245

Please sign in to comment.