How to trigger sync and async imports
See original GitHub issueHow does less decide to call loadFile
or loadFileSync
of the current fileManager
? According to this code it requires an isSync
-parameter to be set. But a short search for a call to getFileManager
reveals that this option is only used by lib/less/functions/data-uri.js
.
Is it possible to set this option explicitly when calling render()
?
Issue Analytics
- State:
- Created 9 years ago
- Comments:27 (18 by maintainers)
Top Results From Across the Web
Convert import() to synchronous - javascript - Stack Overflow
I'm trying to convert all of my node require() s into the import() statements, however, those are async and I'm having a bit...
Read more >Synchronous and asynchronous import sets - ServiceNow
An import set with a Mode of Synchronous will transform the data as soon as it is inserted (provided that the transform map...
Read more >Synchronous and Asynchronous Automations - What is jestor?
Synchronous and asynchronous automations are triggers that either run in sync or out of sync with the user's actions.
Read more >How To Handle Async Data Loading, Lazy Loading, and Code ...
Step 1 — Loading Asynchronous Data with useEffect. In this step, you'll use the useEffect Hook to load asynchronous data into a sample ......
Read more >Designing Libraries for Async and Sync I/O
Don't want API differences between async and sync or to maintain two code-bases of similar code. Properties and constructors must be synchronous ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there a
renderSync
yet? If not, is there a workaround for a synchronousrender
?Edit: Nvm. For any future person who stumbles upon this, this is what I did:
Cool!
There is just one problem: It is very unusual to do something synchronously while accepting a
callback
(as therender
-function does). You’re suggesting async
-option like this:?
Imho it’s weird to have the callback being called synchronously. I’d expect an api like this: