When enabling serviceworkers by setting the according flag to true, the CSV data is correctly parsed, but the page UI completely freezes until parsing is finished. So, the behaviour is the same as wehen setting the workers flag to false.
To Reproduce
Add the following to the "assets" array inside angular.json:
Create a file object from existing blob and use the papa.parse method as follows:
const csvData = new File([blob], fileName);
this.papa.parse(csvData,
{
fastMode: true,
worker: true,
delimiter: ';',
header: true,
complete: (results, file) => {
some post logic...
...
}
}
}
);
Expected behavior
If the workers flag is set to true the page should stay reactive, while CSV data is parsed, as described in the docs:
Using a worker will keep your page reactive, but may be slightly slower.
Note that worker option is only available when parsing files and not when converting from JSON to CSV.
Describe the bug
When enabling serviceworkers by setting the according flag to true, the CSV data is correctly parsed, but the page UI completely freezes until parsing is finished. So, the behaviour is the same as wehen setting the workers flag to false.
To Reproduce
Expected behavior
If the workers flag is set to true the page should stay reactive, while CSV data is parsed, as described in the docs:
Software and platform
Additional context
Add any other context about the problem here.