code11 / engine

A declarative state management system
MIT License
9 stars 11 forks source link

add Error Boundaries for views #128

Closed Laurentiu998 closed 2 years ago

Laurentiu998 commented 2 years ago

Add the possibility to pass a custom Error Fallback component in the engine render method that receives the actual error, producerMeta information, and the viewId as params.

If no such fallback method is provided, when an error will occur and it can be caught by error boundaries, the default fallback component will be displayed instead of showing a blank page.