# Offload calculations with Web Workers, Comlink and TanStack Query

Canonical source : [Offload calculations with Web Workers, Comlink and TanStack Query](<https://sebastien.rigaux.be/en/tech-watch/links/offload-calculations-with-web-workers-comlink-and-tanstack-query>)

The article combines Comlink and TanStack Query to manage calculations in a Web Worker. Its example shows how to keep the interface responsive during expensive computation.

- Selected on : 2024-06-29

- Resource publication : 2024-06-23

- Entry updated : 2026-11-07T20:32:37+0000

- Format : Article

- Source language : EN

- Credit : https://johnnyreilly.com/about

Original resource : [Offload calculations with Web Workers, Comlink and TanStack Query](<https://johnnyreilly.com/web-workers-comlink-vite-tanstack-query>)

Tags : Web Workers · [TanStack Query](<https://sebastien.rigaux.be/en/tech-watch/tags/tanstack-query>) · [JavaScript](<https://sebastien.rigaux.be/en/tech-watch/tags/javascript>) · [React](<https://sebastien.rigaux.be/en/tech-watch/tags/react>) · [Web Performance](<https://sebastien.rigaux.be/en/tech-watch/tags/web-performance>)

Available versions : [Français](<https://sebastien.rigaux.be/veille/liens/deporter-les-calculs-avec-web-workers-comlink-et-tanstack-query>) · [English](<https://sebastien.rigaux.be/en/tech-watch/links/offload-calculations-with-web-workers-comlink-and-tanstack-query>)

[Back to tech watch](<https://sebastien.rigaux.be/en/tech-watch>)
