Store update produces error "current is undefined" - SolidJS