Skip to content

Prevent JavaScript components from crashing ReactPy by adding error boundaries #676

Open
@Archmonger

Description

@Archmonger

Current Situation

Currently, if an invalid hook call occurs then ReactPy completely breaks.

Reference

Proposed Actions

Add an error boundary to tree nodes to prevent complete failure upon tree exceptions. Probably only want to apply this to things that have been exported via module_from_template(...). We have no reason to assume this exception can happen with any pure ReactPy code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-2-moderateShould be resolved on a reasonable timeline.type-revisionAbout a change in functionality or behavior

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions