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}) => {
6969 } , [ navigation ] ) ;
7070
7171 React . useEffect ( ( ) => {
72+ fetch ( `${ BACKEND_URL } /success` ) // exists just to add span data to demo
7273 loadData ( ) ; // this line is not blocking
73- } , [ ] ) ;
74+ } , [ ] ) ;
7475
7576 return (
7677 < View style = { styles . screen } >
@@ -162,9 +163,6 @@ export const selectImage = (source: string): React.ReactElement => {
162163
163164const ProfiledImage = Sentry . withProfiler ( Image ) ;
164165
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- */
168166const ProductItem = ( props : {
169167 id : number ;
170168 type : string ;
@@ -173,6 +171,9 @@ const ProductItem = (props: {
173171 imgcropped : string ;
174172 appDispatch : AppDispatch ;
175173} ) : React . ReactElement => {
174+ React . useEffect ( ( ) => {
175+ fetch ( `${ BACKEND_URL } /success` ) // exists just to add span data to demo
176+ } , [ ] ) ;
176177 return (
177178 < View style = { styles . statisticContainer } >
178179 < View style = { styles . card } > { selectImage ( props . imgcropped ) } </ View >
You can’t perform that action at this time.
0 commit comments