package.react-utils.useIsElementVisibleInDom.useForceUpdate.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"useForceUpdate.js","names":["useState","useForceUpdate","_useState","_useState2","_slicedToArray","setValue","value"],"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,SAASA,QAAQ,QAAQ,OAAO;AAEhC,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAA,EAAS;EAC3B;EACA,IAAAC,SAAA,GAAqBF,QAAQ,CAAC,CAAC,CAAC;IAAAG,UAAA,GAAAC,cAAA,CAAAF,SAAA;IAAvBG,QAAQ,GAAAF,UAAA;EAEjB,OAAO;IAAA,OAAME,QAAQ,CAAC,UAAAC,KAAK;MAAA,OAAIA,KAAK,GAAG,CAAC;IAAA,EAAC;EAAA;AAC3C,CAAC;AAED,eAAeL,cAAc","ignoreList":[]}