Skip to content

Commit cc8206a

Browse files
antonisclaude
andcommitted
fix(react-native): Replace Note with Alert component in component tracking
The Note MDX component is not registered, causing the build to fail. Use Alert instead, which is available globally. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e28f741 commit cc8206a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/platforms/react-native/integrations/component-tracking.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ If set to `true`, the profiler will not generate any spans. (Set as `false` by d
4747

4848
Option to have a `ui.react.render` span created by the Profiler. (Set as `true` by default.)
4949

50-
<Note>
50+
<Alert>
5151

5252
The `useProfiler` hook tracks `ui.react.mount` and `ui.react.render` spans. It does not track `ui.react.update` spans. If you need update tracking, use [`withProfiler`](#withprofiler-higher-order-component) or the [`Profiler` component](#profiler-component) instead.
5353

54-
</Note>
54+
</Alert>
5555

5656
## `withProfiler` Higher-Order Component
5757

@@ -134,11 +134,11 @@ function ParentComponent({ data }) {
134134

135135
The `Profiler` component accepts the following props: `name`, `disabled`, `includeRender`, `includeUpdates`, and `updateProps`. Pass `updateProps` to enable `ui.react.update` span tracking — when the values in `updateProps` change between renders, the Profiler will generate update spans. This is the main advantage of using `Profiler` over `useProfiler`, which does not track updates.
136136

137-
<Note>
137+
<Alert>
138138

139139
`withProfiler` handles `updateProps` automatically by forwarding the wrapped component's props. When using the `Profiler` component directly, you need to pass `updateProps` yourself.
140140

141-
</Note>
141+
</Alert>
142142

143143
## Next Steps:
144144

0 commit comments

Comments
 (0)