Skip to content

React-sound soundmanager doesnt work with useHistory hook #96

Description

@ridhwaans

React-sound audio playback works as expected with react-router-dom. The audio doesnt suspend or shutdown when using <Link>

Using goBack() and goForward() from the useHistory hook stops the audio playing for some reason, even though it does not reload/refresh the page. it behaves like <Link> to the previous/next browserrouter <Route>
console log is

soundmanager2.js:1307 sound0: Destruct
soundmanager2.js:1307 sound0: Removing event listeners
soundmanager2.js:1307 sound0: stop()
soundmanager2.js:1307 sound0: unload()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions