Giter VIP home page Giter VIP logo

Comments (9)

leoasis avatar leoasis commented on June 29, 2024 1

Fixed and published in https://github.com/leoasis/react-sound/releases/tag/v1.1.0, let me know if this is all ok now! Thanks for filing the issue and the example!

from react-sound.

nukeop avatar nukeop commented on June 29, 2024 1

Yeah it seems to be fixed now. Thanks for the help.

from react-sound.

leoasis avatar leoasis commented on June 29, 2024

Can you provide a repository with the code so that I can repro the issue? Or maybe something like a link in codesandbox or somewhere where I can run the code and see what's going on.

from react-sound.

nukeop avatar nukeop commented on June 29, 2024

I'm experiencing the same issue after updating to 1.0.0. Looking at the console, it switches position to 0 after every update, abruptly stopping and resuming. I'm using react-sound as a controlled component. Values I'm updating the prop "position" with are in blue:

screenshot

I have to revert to 0.8.0.

from react-sound.

nukeop avatar nukeop commented on June 29, 2024

Reverting to 0.10.0 also works. The issue disappears if I stop updating position manually. There might be a problem with how the position state is updated internally in react-sound.

from react-sound.

leoasis avatar leoasis commented on June 29, 2024

@nukeop can you provide a quick repro snippet so I can take a look? Can be a repo, a codesandbox link, or any other thing that I can go and install/use

from react-sound.

nukeop avatar nukeop commented on June 29, 2024

I'll try to throw something together later today (I encountered the issue in the music player I'm working on but I doubt you want to download the entire program just to check this issue).

Anyway I'm positive that this isn't a problem on my end as I tried the same steps with react-sound 1.0.0 and 0.10.0 and only saw this happening only with 1.0.0.

from react-sound.

leoasis avatar leoasis commented on June 29, 2024

Thanks! I'm willing to fix whatever is broken but just want to have a way to repro it in a somewhat easy way

from react-sound.

nukeop avatar nukeop commented on June 29, 2024

https://github.com/nukeop/sound-bug

Clone, npm install, npm run dev, and go to localhost:8080 to see the problem

After changing react-sound to 0.10.0 in package json, npm install again and run it to see the problem disappear.

from react-sound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.