eManPrague / frui.ts

Pragmatic MVVM frontend framework
MIT License
14 stars 5 forks source link

View with(out) ErrorBoundary #51

Closed kopecmi8 closed 2 years ago

kopecmi8 commented 2 years ago

From version 0.16.0 every View component act as ErrorBoundary.

From react docs

A class component becomes an error boundary if it defines either (or both) of the lifecycle methods static getDerivedStateFromError() or componentDidCatch().

Sometimes could be fine to left errorBoundary to its parent. At this time, there is no way how to do it. I think we should provide to programmer choice to use View with erorrBoundary behaviour or without like it was up to version 0.15.0