Skip to content

Conversation

seansps
Copy link
Contributor

@seansps seansps commented Jul 29, 2025

Dependencies check up

I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.17.8 and also tested on 8.1.3

What package has an issue?
@mantine/hooks

What framework do you use?
Vite

In which browsers you can reproduce the issue?
Chrome, Safari, Firefox

Describe the bug
It seems that when merging mantine refs to ReactDND refs, on unmount, we get errors about this cleanup function implemented from a prior PR: https://github.com/mantinedev/mantine/pull/7304/files#diff-7aaef3b012f983195f83037e3474a958b02ad5da696aaf2348b36bb529ce3b41

If possible, include a link to a codesandbox with a minimal reproduction
No response

Possible fix
This PR attempts to fix the issue by checking if the cleanup function returned is actually a function

Self-service

  • I would be willing to implement a fix for this issue

@rtivital rtivital merged commit abd9d54 into mantinedev:master Jul 30, 2025
1 check passed
@rtivital
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants