I have ag grid component and this web worker will act as an enhancement for fetching and displaying data from api.
I tried creating a web worker and passed the url as a prop to the grid. The url is passed to worker and the worker will execute the postMessage and onmessage events.