{"id":14384640,"url":"https://github.com/sebastianmoderski/react-sentry-error-boundary","last_synced_at":"2025-04-12T19:11:54.758Z","repository":{"id":32674533,"uuid":"139300037","full_name":"sebastianmoderski/react-sentry-error-boundary","owner":"sebastianmoderski","description":"A React error boundary component with integrated Sentry error reporting using Raven JS.","archived":false,"fork":false,"pushed_at":"2022-12-07T10:51:07.000Z","size":318,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T13:37:30.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianmoderski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-01T04:24:31.000Z","updated_at":"2023-09-13T16:54:13.000Z","dependencies_parsed_at":"2023-01-14T21:53:57.187Z","dependency_job_id":null,"html_url":"https://github.com/sebastianmoderski/react-sentry-error-boundary","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianmoderski%2Freact-sentry-error-boundary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianmoderski%2Freact-sentry-error-boundary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianmoderski%2Freact-sentry-error-boundary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianmoderski%2Freact-sentry-error-boundary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianmoderski","download_url":"https://codeload.github.com/sebastianmoderski/react-sentry-error-boundary/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618281,"owners_count":21134201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-28T18:01:32.386Z","updated_at":"2025-04-12T19:11:54.736Z","avatar_url":"https://github.com/sebastianmoderski.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# react-sentry-error-boundary\nA React error boundary component with integrated Sentry error reporting using Raven JS.  This library uses an instance of Raven JS Client to manually capture exceptions in the React lifecycle method componentDidCatch.  This is especially useful for implementing Sentry error reporting within integrated content.\n\n### Installation\n\n```\nnpm install --save-dev react-sentry-error-boundary\n```\n\n### Requirements\n\n#### Peer Dependencies\n```\nprop-types \u003e=15.5.0\nraven-js \u003e=3.26.3\nreact \u003e=16.0.0\n```\n\n### Usage\n\n```js\nimport MyWidget from './MyWidget'\nimport SentryErrorBoundary from 'react-sentry-error-boundary'\nimport React from 'react'\n\nconst App = () =\u003e\n  \u003cSentryErrorBoundary dsn=\"https://\u003ckey\u003e@sentry.io/\u003cproject\u003e\"\u003e\n    \u003cMyWidget /\u003e\n  \u003c/SentryErrorBoundary\u003e\n\nexport default App\n```\n\n### Props\n\n#### config\n[Documentation](https://docs.sentry.io/clients/node/config/)\n```\nA Sentry configuration object.\n```\n\n#### dsn\n[Documentation](https://docs.sentry.io/quickstart/#configure-the-dsn)\n```\nREQUIRED. A Sentry DSN URL.\n```\n\n#### errorCallback\n```\nA callback function to execute on error.\n```\n\n#### errorNode\n```\nA node to render on error.\n```\n\n#### logErrors\n```\nA bool indicating whether errors are logged to Sentry. Defaults to true.\n```\n\n#### userContext\n[Documentation](https://docs.sentry.io/learn/context/)\n```\nA Sentry user context object.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianmoderski%2Freact-sentry-error-boundary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianmoderski%2Freact-sentry-error-boundary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianmoderski%2Freact-sentry-error-boundary/lists"}