jaredLunde/react-hook

useMouse in Next.js init error

Yrobot opened this issue · 1 comments

Code

import React, { useState, useEffect } from "react";
import useMouse from "@react-hook/mouse-position";

function Page({ ...props }) {
  const { screenX = 0, screenY = 0 } = useMouse(null, {
    fps: 30,
  });
  return (
    <div ></div>
  );
}

Error
image

thanks for reporting, released in 4.1.1