Skip to content

Commit e00a472

Browse files
author
Luca Forstner
authored
docs: Warn about risks of reactComponentAnnotation (#699)
1 parent 9a7257d commit e00a472

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/dev-utils/src/generate-documentation-table.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,8 @@ type IncludeEntry = {
377377
},
378378
{
379379
name: "reactComponentAnnotation",
380-
fullDescription: `Options related to react component name annotations.
381-
Disabled by default, unless a value is set for this option.
382-
When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
383-
This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
384-
Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
385-
`,
380+
fullDescription: `(NOTICE: Use the react component annotation feature with caution. The option will pass additional properties to your React components which may lead to errors if libraries or your own code iterate through component props without checking for the additional Sentry props.)\n\nOptions related to react component name annotations.
381+
Disabled by default, unless a value is set for this option.\nWhen enabled, your app's DOM will automatically be annotated during build-time with their respective component names.\nThis will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.`,
386382
supportedBundlers: ["webpack", "vite", "rollup"],
387383
children: [
388384
{

0 commit comments

Comments
 (0)