{"_id":"@buildinams/use-is-mounted","_rev":"4-3bbc0422b32999988545f03160b1b738","name":"@buildinams/use-is-mounted","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@buildinams/use-is-mounted","version":"0.0.1","keywords":["react","hooks","hook","react-hook","mounted","is-mounted"],"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","_id":"@buildinams/use-is-mounted@0.0.1","maintainers":[{"name":"paulomfj","email":"mfjpaulo@gmail.com"},{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},{"name":"buildinamsterdam","email":"maikel@buildinamsterdam.com"}],"homepage":"https://github.com/buildinamsterdam/use-is-mounted#readme","bugs":{"url":"https://github.com/buildinamsterdam/use-is-mounted/issues"},"dist":{"shasum":"1a874f1b596a48163db33acfa6b638423806615d","tarball":"https://registry.npmjs.org/@buildinams/use-is-mounted/-/use-is-mounted-0.0.1.tgz","fileCount":21,"integrity":"sha512-esEQomJvOwyXcXeBAvnLEZuOltt9KSHVCNA+1Nzw6iQCNwMVpZkdM3+ej5yA91rMOPTpizBsxzaLDZvnN96mdQ==","signatures":[{"sig":"MEUCIBiumXr6yQm7vm3opXQC6R0dNjYc6elMDADHUl+3lGrTAiEA94drjj3w2VMWPVrv+wGO5h+OOoxEHD8/3PlR2Cg3OIE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj172aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmppdw/9E25/hwir+AU6BeW2nitm7dVEWQVlXYWZYrvk4sNMxwTJw4oz\r\n8z8ZiUN4PX4RfzvIsSLBoozjvFJ2WvV5kxaJIxk2JiZQdIaO8IxtqBcxIflU\r\ncShdVxlavDRsheZLRsDV8YMtT2dqidT/2ZNqV8MGAHj9AQRxdCbMEW8tG4w2\r\nJb+sUBQHoPiUDVUc/B9z24tTefJwXgeVWUUXQwR0/8Ojejg+5aoh2YvqDUa+\r\nQHMhglN6cnp+X4i0OyoN2P3DlNKLn9e8/zAHWQF5/V3SvaBKKo+VwkS1kdPf\r\nQbxOkdjZRkY20ix9zhTtyGZ2yTWvvaSREv01wOonfkGkq/OF9sROvMe0tbcu\r\nVaSkx9aYqu5E7kpS8BJ01OXWZ1iBuzjjHlzKt8NpRXNI3AdQFCTq9vXUNex2\r\nXJuzgPKMccjzsqZbHlBjFoG/kkffAUgGRHTl+SG9h8JCk1jSkHSdTGMQMdpO\r\nBqDQDdRK19EFtJyhBtz3X7YEbkJwCrB4gKoUf8SiUwvxXwTz2m5JubF6fWCu\r\nj1J2f9T1+hz8zDvc8g4bgD1GefY4fzN6bWj5AAXqkj+wrqj4perRryb9Dsh/\r\nm1VsOLLr+dcD951DDa+dxgkeOS6ML9pLtX2XxnlsOGk8/IQp2q15oKI3pIKn\r\n0alxSV/Pxj2uYukDTWzbZuj9RsnWnt+C7E4=\r\n=P73U\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"b6ba4c5fd036c4e19bc05bde877c1c2f978bb5d7","scripts":{"fix":"npm-run-all --sequential fix:*","lint":"NODE_ENV=test npm-run-all --parallel lint:*","test":"jest","build":"tsc","fix:js":"eslint \"src/**/*.{ts,tsx}\" --fix","coverage":"jest --coverage","depcheck":"npx npm-check --update","fix:format":"prettier \"**/*.{md,yml}\" --write","test:watch":"jest --watch","build:types":"tsc --emitDeclarationOnly","lint:format":"prettier \"**/*.{md,yml}\" --check","lint:script":"eslint \"src/**/*.{ts,tsx}\"","prepublishOnly":"npm run build","lint:type-check":"tsc --noEmit"},"_npmUser":{"name":"_brunotome_","email":"bruno@buildinamsterdam.com"},"repository":{"url":"git+https://github.com/buildinamsterdam/use-is-mounted.git","type":"git"},"_npmVersion":"8.19.3","description":"Hook to check if effectively the component is mounted.","directories":{},"_nodeVersion":"18.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","babel":"^6.23.0","ts-jest":"^29.0.3","ts-node":"^10.9.1","prettier":"^2.8.2","react-dom":"^18.0.0","typescript":"^4.9.4","@types/jest":"^29.2.6","@types/node":"^18.11.18","npm-run-all":"^4.1.5","@types/react":"^18.0.27","@buildinams/lint":"^0.0.3","@types/react-dom":"^18.0.10","@babel/preset-env":"^7.20.2","@testing-library/react":"^13.4.0","jest-environment-jsdom":"^29.3.1","@babel/preset-typescript":"^7.18.6"},"peerDependencies":{"react":">=17.0.0 || 18"},"_npmOperationalInternal":{"tmp":"tmp/use-is-mounted_0.0.1_1675083162370_0.04944151716599832","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-01-30T12:52:42.284Z","modified":"2025-12-19T15:31:16.368Z","0.0.1":"2023-01-30T12:52:42.523Z"},"bugs":{"url":"https://github.com/buildinamsterdam/use-is-mounted/issues"},"author":{"url":"https://www.buildinamsterdam.com/","name":"Build in Amsterdam","email":"development@buildinamsterdam.com"},"license":"MIT","homepage":"https://github.com/buildinamsterdam/use-is-mounted#readme","keywords":["react","hooks","hook","react-hook","mounted","is-mounted"],"repository":{"url":"git+https://github.com/buildinamsterdam/use-is-mounted.git","type":"git"},"description":"Hook to check if effectively the component is mounted.","maintainers":[{"email":"maikel@buildinamsterdam.com","name":"buildinamsterdam"},{"email":"bruno@buildinamsterdam.com","name":"_brunotome_"},{"email":"folkert-jan@buildinamsterdam.com","name":"folkertjan"},{"email":"maarten@obelism.studio","name":"maartenbruggink"}],"readme":"# use-is-mounted\n\n[![NPM version][npm-image]][npm-url]\n[![Actions Status][ci-image]][ci-url]\n[![PR Welcome][npm-downloads-image]][npm-downloads-url]\n\nHook to check if effectively the component is mounted.\n\n## Introduction\n\nThis hook allow to check if effectively the component is mounted.\n\n## Installation\n\nInstall this package with `npm`.\n\n```bash\nnpm i @buildinams/use-is-mounted\n```\n\n## Usage\n\nTo use this hook, simply import it and use it like a normal React hook.\n\n```tsx\nimport React from 'react';\nimport useIsMounted from '@buildinams/use-is-mounted';\n\nconst MyComponent = () = {\n  const isMounted = useIsMounted();\n  ...\n}\n```\n\n## API\n\nOn first render this hooks returns `false` and then returns `true` once is mounted.\n\n## Requirements\n\nThis library requires a minimum React version of `17.0.0`.\n\n## Requests and Contributing\n\nFound an issue? Want a new feature? Get involved! Please contribute using our guideline [here](https://github.com/buildinamsterdam/use-is-mounted/blob/main/CONTRIBUTING.md).\n\n[npm-image]: https://img.shields.io/npm/v/@buildinams/use-is-mounted.svg?style=flat-square&logo=react\n[npm-url]: https://npmjs.org/package/@buildinams/use-is-mounted\n[ci-image]: https://github.com/buildinamsterdam/use-is-mounted/actions/workflows/test.yml/badge.svg\n[ci-url]: https://github.com/buildinamsterdam/use-is-mounted/actions\n[npm-downloads-image]: https://img.shields.io/npm/dm/@buildinams/use-is-mounted.svg\n[npm-downloads-url]: https://npmcharts.com/compare/@buildinams/use-is-mounted?minimal=true\n","readmeFilename":"README.md"}