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
In questa pagina del sito puoi guardare il video online Moving Code Evaluation to a WebWorker | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Bayan Bennett 20 maggio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 239 volte e gli è piaciuto 12 spettatori. Buona visione!