Using with react-router v4: sound is not played without explicit refresh
PEZO19 opened this issue · 3 comments
PEZO19 commented
I have a weird bug and I have not idea how is it possible.
I am creating a game and I use react-howler for it. Until this point I haven't used parameters in my route, but I do now, and when I do it seems the .mp3 assets do not load properly.
The scenario is this:
- I visit to /app_eng (the route without parameter),
- I click the PLAY button which drives me to /game on client.
- I start clicking on elements, and the proper actions with proper meta properties fire off
- I hear the sounds.
But if I use the route as a parameter (matching /app/:lang)
- I visit to /app/eng (I know it works, because I can read "eng" from the "lang" property),
- I click the PLAY button which drives me to /game on client.
- I start clicking on elements, and the proper actions with proper meta properties fire off
- I do not hear the sounds.
- I refresh the page on /game
- I start clicking on elements AGAIN, and the proper actions with proper meta properties fire off
- I hear the sounds.
What might cause this behaviour?
thangngoc89 commented
If you can make a reproducible test case, I would be appreciated. Otherwise, this is just insane to debug.
PEZO19 commented
Okay, if I don't get any solution on other forums I will create it.
PEZO19 commented
Sorry it turned out it is not related to react-howler.