Skip to content

add error boundaries #24

@tomwayson

Description

@tomwayson

https://reactjs.org/docs/error-boundaries.html

Probably at the top level of each route, and maybe around the nav?

Would be ideal if we could get rid of the catch for fetching items:

.catch(e => {
this.setState({
error: e.message || e,
results: null,
total: 0
});
});

I also wonder what happens if there are JSAPI errors w/in an error boundary. Should test that and maybe explicitly add one around the map component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions