react-scan
react-scan copied to clipboard
[Feature]: Allow user to disable react scan through script tag attribute
Ideally we should allow:
I was actually thinking maybe we can do something like
<script>
window.__REACT_SCAN_CONFIG = {
enabled: true,
};
</script>
<script src="/path/to/auto"></script>
so users can still have full access to the options.
I was actually thinking maybe we can do something like
so users can still have full access to the options.
Much better idea. It may actually already work since we use signals
<script src="/path/to/auto"></script>
<script>
window.ReactScanInternals.options.value.enabled = false
</script>
Bucks ?