S

@smoksnes

Developer

Active Stack Overflow contributor with 10.9k reputation.

WebWhy Bootstrap Modal shown.bs.modal Fires Twice in React useEffect

Learn why Bootstrap 'shown.bs.modal' event fires twice in React useEffect (empty deps, no StrictMode) but once in plain JS. Fixes include cleanup, ref guards, and react bootstrap alternatives for reliable modal events.

6 answers 1 view