i've noticed that if I try to use @medplum/react f...
# general
s
i've noticed that if I try to use @medplum/react for the useMedplum hook but nothing else, I'm still required to install 3 mantine dependencies... I don't really want mantine in my codebase at all if I can avoid it.. is there a way to get @medplum/react without any mantine libs?
Copy code
"@mantine/core": "^6.0.2",
    "@mantine/hooks": "^6.0.2",
    "@mantine/notifications": "^6.0.2",
these are the 3 strict requirements to have in my dependencies otherwise I can't import from @medplum/react
c
Hi @stefant1707 - yep, that is a known issue. we have considered breaking
@medplum/react
apart into
@medplum/react
and
@medplum/react-hooks
to support that use case
if only using
useMedplum
, you could probably avoid the dependencies using package.json overrides -- i haven't tried that though
s
ahh yeah that seems like a clean delineation, ok cool
its not a big deal for now, whenever the hooks get separated out i'll swap to that dep and remove mantine
c
sounds good, we'll keep you posted 👍
185 Views