You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code written in #22 is good enough to make things work. But to make it crisp, easy to understand and more DRY. We can
use a single worker file (can be named wrapper.worker.js file)
import every layout computation file in it
Transfer the switch case statement from layout.js file to wrapper worker file to decide which layout to use
Although this is not the super best technique to do this because there will be two entry files into the layout computation. One will be layout.js and the other will be wrapper.worker.js.
A much more advanced version of doing this would be to even merge those two files into one if it does not make the code super-complicated.
The text was updated successfully, but these errors were encountered:
Code written in #22 is good enough to make things work. But to make it crisp, easy to understand and more DRY. We can
Although this is not the super best technique to do this because there will be two entry files into the layout computation. One will be layout.js and the other will be wrapper.worker.js.
A much more advanced version of doing this would be to even merge those two files into one if it does not make the code super-complicated.
The text was updated successfully, but these errors were encountered: