Skip to content

Files

Latest commit

e33520d · Feb 13, 2025

History

History
31 lines (21 loc) · 691 Bytes

CHANGELOG.md

File metadata and controls

31 lines (21 loc) · 691 Bytes

micetrap changelog

1.1.0

Correctly works! (maybe)

🚀 Features

  • [Experimental] Accept ref from external
    // Support both ref styles
    
    // Support but not recommended
    const ref = useRef<HTMLDivElement>(null);
    usetMicetrap({ /* bindings */ }, { /* options */ }, ref);
    //                                                  ^^^ external ref in 3rd argument
    
    // Recommended
    const ref = useMicetrap({ /* bindings */ }, { /* options */ });

🤕 Fixed

  • Incorrect (duplicate) event handling by all key events
  • Fix micetrap/react can't be import
  • Fix server sider warning by useLayoutEffect

1.0.0

  • Initial release