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
AFAIK returning arrays as results doesn't make any sense in Falcor (unless wrapped in ref or atom), so I guess you could just throw a meaningful error if there's an array returned as value.
The point is, returning array in place of a value doesn't make any sense (AFAIK), so Falcor should throw an Error instead of constructing weird objects with {"undefined":{"$type":"atom"}}. I never asked for key "undefined", so why do I get it in result? 🪲
The text was updated successfully, but these errors were encountered:
Originally reported in Netflix/falcor#732.
Let say my route handler returns this:
Maybe you noticed - I forgot to wrap my
value
inModel.ref
.The returned result, when asking for
["things", 629026273, "linkedTopic", "headline"]
is:Definitely looks like a bug. 🪲
AFAIK returning arrays as results doesn't make any sense in Falcor (unless wrapped in
ref
oratom
), so I guess you could just throw a meaningful error if there's an array returned asvalue
.The point is, returning array in place of a value doesn't make any sense (AFAIK), so Falcor should throw an
Error
instead of constructing weird objects with{"undefined":{"$type":"atom"}}
. I never asked for key"undefined"
, so why do I get it in result? 🪲The text was updated successfully, but these errors were encountered: