@open-condo/miniapp-utils v2.5.0
@open-condo/miniapp-utils 
A set of helper functions / components / hooks used to build new condo apps fast. \ \ The purpose of this package is to take away from you the tedious code to set up and maintain common miniapp patterns, leaving your focus solely on the domain logic
Table of contents
Installation
Peer dependencies
NOTE: This package uses
react/react-domand@apollo/clientas its peer dependencies, so make sure you've got ones installed.You should have no trouble with any react version having a hooks, but we're testing on versions
>=16.Any apollo
3.x.xshould be fine too, but all utils are tested on^3.11.8
react/react-domare required for/hooks/**and/components/**entry points@apollo/clientis required for/helpers/apollo.ts- 'analytics' is required for
/helpers/analytics/*You can skip installing them if you don't use these utilities, as each utility is built separately, but we highly recommend leaving them installed
Installing packages
Install all (NPM)
npm i @open-condo/miniapp-utils react react-dom @apollo/clientInstall all (Yarn)
yarn add @open-condo/miniapp-utils react react-dom @apollo/clientUsage
You can import needed helpers / hooks / components by its name
import { isDebug, isSSR } from '@open-condo/miniapp-utils/helpers/environment'
import { usePrevious } from '@open-condo/miniapp-utils/hooks/usePrevious'