ErrorBoundry component not works
hi
now i am doing official-tutorial : https://www.solidjs.com/tutorial/flow_error_boundary
I copy-and-paste this code in my vite project. the full-code is below this
and it doesn't show anything about error.
but It works on solid-playground
I never found what is difference between my project and solid-playground.
and feedbacks are helpful to me
thank you
SolidJS
Solid is a purely reactive library. It was designed from the ground up with a reactive core. It's influenced by reactive principles developed by previous libraries.
3 Replies
I found strange thing
this not works, but
this works.
why?
Your code works for me, but of course it doesn't work as you mentioned because your
fallback
doesn't return any JSX element
try
fallback={err => <h1>{err.message}</h1>}
I understand what you are said
this works because fallback returns html element. but
this also works although fallback returns javascript object that is not htmlelement
I don't understand why
fallback={err => err}
syntax works and sometimes not works