All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.react-utils.useIsElementVisibleInDom.useForceUpdate.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"version":3,"file":"useForceUpdate.js","names":["_react","require","useForceUpdate","_useState","useState","_useState2","_slicedToArray2","setValue","value","_default","exports"],"sources":["../../../../src/react-utils/useIsElementVisibleInDom/useForceUpdate.js"],"sourcesContent":["import { useState } from \"react\";\n\nconst useForceUpdate = () => {\n  // eslint-disable-next-line react/hook-use-state\n  const [, setValue] = useState(0);\n\n  return () => setValue(value => value + 1);\n};\n\nexport default useForceUpdate;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAA,EAAS;EAC3B;EACA,IAAAC,SAAA,GAAqB,IAAAC,eAAQ,EAAC,CAAC,CAAC;IAAAC,UAAA,OAAAC,eAAA,aAAAH,SAAA;IAAvBI,QAAQ,GAAAF,UAAA;EAEjB,OAAO;IAAA,OAAME,QAAQ,CAAC,UAAAC,KAAK;MAAA,OAAIA,KAAK,GAAG,CAAC;IAAA,EAAC;EAAA;AAC3C,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEaR,cAAc","ignoreList":[]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy