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
{{ message }}
Repository navigation
The method valueOf() of a Drop does not await promises #948
I put an object on the scope of the template - let's call it o - and I would like to make it super easy for template authors to serialize it to a string representation. What I have in mind is to call my serialization function from the method valueOf() of my Drop, which would provide the following authoring experience:
# Returns the identifier of the object
{{ o.id }}
# Returns a string representation of the object
{{ o }}
Problem
The problem is that my serialization function is async and, instead of getting the string representation, I get [object Promise]. That behavior is different than e.g. liquidMethodMissing() that awaits promises.
Reacted by Kyrylo Burmelov, Yevhenii Moroziuk, Serhii Filonenko, Alik, chulanovskyi-bs, Ivan, Vitalii Yarmus, Yang Jun and Sylvie Paindeville
Activity
harttle commentedon Aug 21, 2026
Makes sense. Let’s see what we can do.
feat: WIP async Drop valueOf resolution (#948)
feat: WIP async Drop valueOf resolution (#948)
feat: await promises returned by Drop.valueOf() (#948) (#953) (#959)
chore(release): 10.30.0 [skip ci]
thomas-jakemeyn commentedon Oct 6, 2026
Awesome, thank you!