File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,9 @@ const EmpowerPlant = ({navigation}) => {
69
69
} , [ navigation ] ) ;
70
70
71
71
React . useEffect ( ( ) => {
72
+ fetch ( `${ BACKEND_URL } /success` ) // exists just to add span data to demo
72
73
loadData ( ) ; // this line is not blocking
73
- } , [ ] ) ;
74
+ } , [ ] ) ;
74
75
75
76
return (
76
77
< View style = { styles . screen } >
@@ -162,9 +163,6 @@ export const selectImage = (source: string): React.ReactElement => {
162
163
163
164
const ProfiledImage = Sentry . withProfiler ( Image ) ;
164
165
165
- /* You could wrap this with the Sentry Profiler,
166
- * but then you'd have hundreds/thousands of spans because the tools response is not paginated.
167
- */
168
166
const ProductItem = ( props : {
169
167
id : number ;
170
168
type : string ;
@@ -173,6 +171,9 @@ const ProductItem = (props: {
173
171
imgcropped : string ;
174
172
appDispatch : AppDispatch ;
175
173
} ) : React . ReactElement => {
174
+ React . useEffect ( ( ) => {
175
+ fetch ( `${ BACKEND_URL } /success` ) // exists just to add span data to demo
176
+ } , [ ] ) ;
176
177
return (
177
178
< View style = { styles . statisticContainer } >
178
179
< View style = { styles . card } > { selectImage ( props . imgcropped ) } </ View >
You can’t perform that action at this time.
0 commit comments