Jump to content
Search Community

AmethystKhoa

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by AmethystKhoa

  1. 11 hours ago, gabriel.ortiz said:

    Thank you @Rodrigo. The hook itself looks good. I think the issue could be a mismatch of React versions. Looking at the package.json. I'm using version ^18. and the hook is using ^16. I do think there are some breaking changes between these versions. I've ran into issues like this before.  The error message: 
    `Uncaught TypeError: Cannot read properties of null (reading 'useRef')`  I've read can be associated with version mismatches.

     

     


     

    I have the same issue, just upgrade my dependencies of react and react-dom to the latest version (). Now it works on my end.image.thumb.png.df2fce2b30d726359d56015f7cde44d3.png

    • Thanks 1
  2. Hello there, wish you have a good day,

    I tried to transfer the project using Gatsby JS (this one is functioning well) into Vite, however, the result is not as expected, i got the issue that the trigger element .container had the value of transform: (0px, 3500px)  ,  i tried to comment the end value -> the translateY value will turn into screen height transform: (0px, *screen height*px)

     

    image.png.680e638767b98fada3c19f7b2db225d8.png

    Here is the minimal demo for it

    https://codesandbox.io/s/modest-rhodes-ew5wgm?file=/src/App.jsx

×
×
  • Create New...