Text shows an input of an async value without the value
The message
MARKLESS_ASYNC_INPUT_BESIDE_VALUE: {<read>} reads "<input>", which "<value>" is fetched with, but not "<value>" itself. During a refresh it shows the new "<input>" next to the old "<value>".
A refresh keeps the shown "<value>" until the new result lands. Text that reads "<value>" waits with it; text that reads only "<input>" changes at once.
Read it through the async value: return "<input>" from "<value>" and show {<value>.<input>}.
https://markless.dev/errors/MARKLESS_ASYNC_INPUT_BESIDE_VALUEWords in angle brackets change from case to case.
Why
When an input of an async computed() changes, the block keeps showing the old result until the new one lands. Text that reads the result waits with it. Text that reads only the input, such as Sorted by {sort} beside a list fetched with sort, changes at once, so for a moment it describes data that is not on screen yet.
Fix
Return the input from the async computed() along with its data and show it from there. Controls that set the input, such as a <select> or a <button>, are fine as they are.
const posts = computed(async () => { const by = sort; return { sort: by, list: await loadPosts(by) };});<p>Sorted by {posts.sort}</p>If you accept the warning on purpose, put this comment on the line above it:
// markless-allow MARKLESS_ASYNC_INPUT_BESIDE_VALUE: the reason you accept it