S
SolidJS10mo ago
deluksic

Error handling in dependent memos

I was expecting that if one memo fails, all the dependent ones would also stop executing, see example here: https://playground.solidjs.com/anonymous/f51ce58c-1f57-4364-92a1-59bc7da54c59 How should I handle such a situation gracefully? Edit: This can cause downstream issues which are then raised instead of the original error, like no property bla on undefined. Another example, I expect "oops" to be rendered in the fallback https://playground.solidjs.com/anonymous/f51ce58c-1f57-4364-92a1-59bc7da54c59
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
1 Reply
deluksic
deluksic10mo ago
I ended up handling the error in the memo and then passing on a sort of Result<> type.