#let __state = state("typki-data", ("deck": (("", false),), "note-type": (none,), "existing-guids": ("",)))
#let note(guid) = {
context {
let data = __state.get()
if guid in data.at("existing-guids") {
panic("Guid " + guid + "already exists!")
} else {
data.at("existing-guids").push(guid)
__state.update(data)
}
}
}
#note("test1")
#note("test2")
#note("test3")
#note("test4")
#note("test5")
This code produces this warning:
layout did not converge within 5 attempts Hint: check if any states or queries are updating themselves
Any idea why?