Thank you, @bjrmatos!
It turns out passing a promise was an unintentional mistake, though fortunately, it didn’t cause any issues. :)
In our setup, we prefetch images in the beforeRender
script, convert them into base64 data URIs, and pass these images to the data. Recently, we introduced an asynchronous image resizer into this process but didn’t handle its output correctly.
Since you mentioned that using a promise with a URL as the "src" is expected behavior, I think we can keep our current implementation as is.
I do have one additional question: when adding promise-based properties to the template’s "data", are there any limitations on what can be passed? Specifically, does the data need to be JSON-serializable, or can it include any JavaScript variable?