Took advantage of WebWorkers' independent scope to intercept console methods away from the page context. This way, code can be evaluated individually. I also used the Proxy class to intercept all calls to all console methods.
📰 Article: https://www.bayanbennett.com/posts/mo...
🗃️ Repository: https://github.com/BayanBennett/refer...
🌐 Site: https://reference.bayanbennett.com/
CHAPTERS #
0:00 Intro
0:30 Result
0:40 Problem
0:52 Looking at Workers
1:28 NextJS v10 ➕ Webpack v5
2:04 Communicating with the Worker
2:29 Proxy Class in JS
4:07 Proxy Implementation
5:48 Console Message Collection
6:19 Outro
---
#NextJS #WebWorkers #TypeScript
Nesta página do site você pode assistir ao vídeo on-line Moving Code Evaluation to a WebWorker | duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bayan Bennett 20 Maio 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 239 vezes e gostou 12 espectadores. Boa visualização!