Preact: componentDidCatch Life cycle method in preact

Created on 23 May 2018  路  2Comments  路  Source: preactjs/preact

This is a feature request. Please add componentDidCatch life cycle method which exists in React. In case if this method already exists then help me out as it doesn't fire when there is a error in the component

Most helpful comment

@KowsalyaPK That's awesome! There is already a PR available that addresses this. I'm closing this issue because we are already tracking this in #1047 and more specifically #799 馃憤

_Edit: @Kanaye beat me to it :)_

All 2 comments

Hi @KowsalyaPK.
componentDidCatch is currently not supported.
But this feature request is tracked in #799 and a pr is currently wip in #819

@KowsalyaPK That's awesome! There is already a PR available that addresses this. I'm closing this issue because we are already tracking this in #1047 and more specifically #799 馃憤

_Edit: @Kanaye beat me to it :)_

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kay-is picture kay-is  路  3Comments

Zashy picture Zashy  路  3Comments

matthewmueller picture matthewmueller  路  3Comments

skaraman picture skaraman  路  3Comments

KnisterPeter picture KnisterPeter  路  3Comments