elgorditosalsero / react-gtm-hook

Easily manage the Google Tag Manager via Hook
https://elgorditosalsero-react-gtm-hook.netlify.app/
MIT License
220 stars 28 forks source link

Added example #18

Closed precious-void closed 3 years ago

precious-void commented 3 years ago

I have added the example for you to test the case with error described here #13

Steps to reproduce:

  1. Run yarn dev in examples
  2. Open localhost:1234, you click on Push on mount route. It will open the component I've added and dispatch an event push_on_mount.
  3. After it has been opened, you refresh the page and it crashes.