Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
149 views
in Technique[技术] by (71.8m points)

javascript - Can we block external api calls when using external web-compent in react?

I was using a web-component provided by an external source. The problem with the component is that it publishes events to the team owning the component via an api call. These events are nothing but the performance indicators of the component. I was curious is there any way to block this api call from being executed? We have functionality in browsers for network request blocking, I was kind off seeking something similar to be done inside the react app, so that network call is not made in the first place.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...