GithubHelp home page GithubHelp logo

Comments (7)

minwork avatar minwork commented on May 13, 2024 1

@szamanr Fixed in v3.1.3

from react.

minwork avatar minwork commented on May 13, 2024

Hey, thanks for the report, I’ll take a look into that. Which version are you using?

from react.

szamanr avatar szamanr commented on May 13, 2024

also got this after upgrading to 3.1.1. i believe this is the line causing issues: 77a2c9d#diff-637808297cc3779e9e013eb818247d1aa1ae9551ae4c2a8483e0560f3a4ef09aR9

probably needs something like if (typeof window !== "undefined") ...

from react.

minwork avatar minwork commented on May 13, 2024

Hey @pablocompagni-contractorvp @szamanr could you try [email protected] and see if it solves that problem?

from react.

raskyer avatar raskyer commented on May 13, 2024

I can confirm it's working on 3.1.2-rc.1

from react.

minwork avatar minwork commented on May 13, 2024

Thanks @raskyer! I've published v3.1.2 with the fix and also added test to ensure it will be working in SSR context in the future

from react.

szamanr avatar szamanr commented on May 13, 2024

for me the app runs fine, but the event is not working. when i do a long press, i get a console error: Uncaught ReferenceError: global is not defined.

my code:

  const toggleDevModeWhenLongPressedThreeTimes = useLongPress(toggleDevMode, {
    onCancel: switchBetweenDevModes,
  });

PS. actually the error happens on any press, not just long press.

from react.

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.