5.7.69 • Published 11 months ago

@hishprorg/corrupti-officia v5.7.69

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@hishprorg/corrupti-officia

@hishprorg/corrupti-officia is a tiny React Hook, designed to easily add a loader to all your axios instances.

NPM JavaScript Style Guide

⚙️ Installation

npm install --save @hishprorg/corrupti-officia

or

yarn add @hishprorg/corrupti-officia

🚀 Usage

import React, { Component } from 'react'
import axiosInstance from 'axios'

import { useAxiosLoader } from '@hishprorg/corrupti-officia'

const MyComponent = () => {
  // Pass the axios instance to the hook
  // Allows you tu customize easily your instance
  const [loading] = useAxiosLoader(axiosInstance)
  return (
    <>
      {loading
      ? <img src="path/to/loader"}/>
      : <div>My data</div>
      }
    </>
  )
}

You may also pass an array of URLs to ignore. This is the second parameter accepted by this hook.

const ignoredUrls = ['https://myignoredurl.com', 'anotherignored.co']
const [loading] = useAxiosLoader(axiosInstance, ignoredUrls)

All urls passed in the ignoredUrls variable, won't trigger the loader.

License

MIT © olivier1208


functionsbytesuperstructelbdescriptionquerystringMapcontainsregexptypesafeprotobufthreetrimStartpushhardlinksObject.getPrototypeOfgesturesregularprettyweakmaprandomiteratordotenvpropertyexpresswhichframerstablecall-bindproxydeepcloneAsyncIteratordeterministicagentinternalRxJSUint16Arrayforktyped arrayreal-timereact poseutilszxcss lessruntimeshelltoobjectconcatMapcopytrimEndexit-codeutil.inspectpreserve-symlinksargvjson-schema-validatortesterawsStyleSheetsomeprivateelmopenssldeep-cloneselfimportreplaytoSortedsnsUnderscoretypekinesisreact animationes2018react-componentefficientequalityexecinstallerschemaesArray.prototype.flattenmkdirpimportexportbinspeccurlshimstatemkdirInt16ArrayrangeerrorCSSStyleDeclarationlistenersfullwidthoffsetrecursiveimmerhttpssignedhas-ownyupsigintsyntaxerrorsetImmediateArray.prototype.flatMapschemeRxjsxUint8ArraySet[[Prototype]]ec2valuesidentifiersremoveroutinggetfilterhasOwnvariables in cssfromjestvalidateObject.entriesstylesclicensorbrowsercomparetoArraygraphqlless compileronceECMAScript 2016routeECMAScript 7assertzerordserror-handlingtypeofspawnmanagercoloromitvarstakeincludeses2016findLastwhatwges2015regular-expressionnegativereact-hook-formnested cssgradients css3fptouchworkspace:*functionaltypeerrorvalidArray.prototype.findLasttypedarraysgenericsES2021slicefantasy-landuser-streamscallbindredux-toolkitStreamnodebundlerglobal this valueutilitiesMicrosoftESnextcodestestinvariantStreamsdescriptorsstringifyreact-hooksdeepcopypackage managermockingdeep-copyhttpassignmapreducedefineES2022protoTypeBoxflagsRegExp.prototype.flagsutilserverless cssflatMaptsbabelfastes2017ES7terminalelasticacheramdahasenvironmentsperformanceasteriskscloudformationlanguagestructuredCloneString.prototype.trimbundlingeslintpluginprefixmodulees-abstracttermsignalObject.fromEntriessesdeeptraversefast-deep-copyhasOwnPropertyArray.prototype.containsswfmkdirspositivecallbackinfpsReactiveExtensionsfastifylazyreduxes8matchesliveelectronpackage.jsonminimalestreewaapiapolloes-shimscolumnSymbol.toStringTagiteratefsArray.prototype.includesworkflowspinnerscallboundexecfilepipesafesharedarraybufferfluxbrowserlistconfigurableArray.prototype.flatglobalsauthenticationstyleguidetranspilerasyncreadablebusycharacterslotextra256ReactiveXcall-boundjQueryURLecmascriptgetPrototypeOfes-shim APIFloat32ArraymapspringpredictableescapeJSONrequiresetprototypeshamFloat64Arrayfullbootstrap csseveryoptimizerconcatnegative zeroES2019ES2018beanstalkdeletedataViewzodlibphonenumbercssArrayBuffer#sliceECMAScript 5WebSocketkoreanwindowassertscoremoveeslint-pluginfile systemloadbalancingfindLastIndexstoragegatewayiamartmacossetPrototypeOfiterationreducerfunctionwarningansiinstalldefinePropertylintbcryptinspectObservablescommandgetterBigInt64ArraytextpicomatchdropforEachautoprefixerES2020fast-copyxtermReflect.getPrototypeOfsymlinksmomentcommanderirqserializerbootstrap lessbabel-coreregular expressionpathserializetslibastArrayInt8ArrayclassnamestrimRighttypescriptimmutableielocationtypedarrayjavascriptlengthcompilerservicefindcss-in-jslessnamepasswordindicatorCSSlesscssgroupArray.prototype.findLastIndexfast-deep-cloneString.prototype.matchAlloptimistaccessibilitystyled-componentsobjloadingmetadatastringifiercss nestingmake dirrobustES8json-schema-validationchromiumfnmatchposeTypeScriptJSON-Schemaespreemulti-packageWeakSetYAMLsharedfront-endawesomesaucedependency manager
5.7.69

11 months ago

5.7.68

11 months ago

5.7.67

11 months ago

5.7.66

11 months ago

5.7.65

11 months ago

5.7.64

11 months ago

5.7.63

11 months ago

5.7.62

11 months ago

5.7.61

11 months ago

5.7.60

11 months ago

5.7.59

11 months ago

5.7.58

11 months ago

5.7.57

11 months ago

5.7.56

11 months ago

5.7.55

11 months ago

4.7.55

11 months ago

4.7.54

11 months ago

4.7.53

11 months ago

4.7.52

12 months ago

4.7.51

12 months ago

4.7.50

12 months ago

4.7.49

12 months ago

4.7.48

12 months ago

4.7.47

12 months ago

4.6.47

12 months ago

4.6.46

12 months ago

4.5.46

12 months ago

4.5.45

12 months ago

3.5.45

12 months ago

3.5.44

12 months ago

3.4.44

12 months ago

3.4.43

12 months ago

3.4.42

12 months ago

3.4.41

12 months ago

3.4.40

12 months ago

3.4.39

12 months ago

3.4.38

12 months ago

3.4.37

12 months ago

3.4.36

1 year ago

3.4.35

1 year ago

3.4.34

1 year ago

3.4.33

1 year ago

3.4.32

1 year ago

3.4.31

1 year ago

3.4.30

1 year ago

3.4.29

1 year ago

3.4.28

1 year ago

3.4.27

1 year ago

3.4.26

1 year ago

3.4.25

1 year ago

3.3.25

1 year ago

3.3.24

1 year ago

3.3.23

1 year ago

3.3.22

1 year ago

3.3.21

1 year ago

3.3.20

1 year ago

3.3.19

1 year ago

3.3.18

1 year ago

3.3.17

1 year ago

3.3.16

1 year ago

3.2.16

1 year ago

2.2.16

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago