try this.
try:
let x = window.localStorage.getItem("notes")
# notes = ($x).parseJson.to(seq[Note])
notes.add(($x).parseJson.to(seq[Note]))
except:
window.localStorage.setItem("notes", $(%*(notes)))
Run
- Karax not redrawing when adding elements to seq? Tim_H
- Re: Karax not redrawing when adding elements to seq? jiro4989
