Socket
Socket
Sign inDemoInstall

@axelor/aos-mobile-error

Package Overview
Dependencies
3
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @axelor/aos-mobile-error

--- title: Error tags: Readme ---


Version published
Weekly downloads
618
increased by472.22%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

title: Error tags: Readme

@axelor/aos-mobile-error

Presentation

This package was developed for the Axelor Open Mobile application.

It only contains an ErrorBoundary component compatible with all React v18.2.x projects linked to an ERP based on Axelor Open Platform.

Usage

Install the library :

yarn add @axelor/aos-mobile-error

All you have to do here is to wrap your application component with the ErrorBoundary component. It will catch all render errors and display the errorScreen provided to allow user to reload the application.

The component needs the following props:

  • errorScreen : screen to be displayed when an error is detected
errorScreen: ({errorMessage, onReloadPress}) => React.ReactNode;
  • userIdfetcher : function to fetch user information
userIdfetcher: () => Promise<any>;
  • putMethod : function to perform a PUT request to the server in order to inform it of the error
putMethod: (fetchOptions: {additionalURL: string; data: any}) => Promise<any>;

Developpment

This package is developed as part of the Axelor Open Mobile application. To contribute, please go to the Github project and follow the guidelines. You will also find an installation guide to help you configure your environment.

FAQs

Last updated on 24 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc