@trackunit/react-core-contexts
v0.4.670
Published
The `@trackunit/react-core-contexts` package contains the core context providers for the [Iris App SDK](https://www.npmjs.com/package/@trackunit/iris-app).
Downloads
8,230
Keywords
Readme
Trackunit React Core Contexts
The @trackunit/react-core-contexts
package contains the core context providers for the Iris App SDK.
For more info and a full guide on Iris App SDK Development, please visit our Developer Hub.
TrackunitProviders
The TrackunitProviders
component is exposed through the @trackunit/react-core-contexts
package.
The component is a wrapper for all the base react providers needed to use contexts available in the trackunit manager.
This makes it possible to use Hooks and complex components in your Iris App.
Inside the provider the following hooks from react-core-hooks
can be used:
- Get data on the current user through
useCurrentUser
hook. - Read the current environment through the
useEnvironment
hook. - Get the users subscription package and features with the
useUserSubscription
hook. - Obtain an access token from the
useToken
hook.
Trackunit
This package was developed by Trackunit ApS. Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.