Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Missing error callback #77

@agnlez

Description

@agnlez

Issue: The layer manager doesn't provide a way to handle internal errors and callback them to the host application. If an error comes up, it will trigger and that's all. The host app cannot do anything about it.

Proposal: creating an error callback to manage any error triggered by the layer manager. This error callback would be optional.

// error could be an error object (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) and we would standardize the way of triggering errors
<LayerManager 
  // props
  onError={(error) => { // do something with error object }}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions