Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axelor/aos-mobile-error

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axelor/aos-mobile-error

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

  • 8.1.4
  • npm
  • Socket score

Version published
Weekly downloads
25
decreased by-96.49%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 12 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc