Open
Description
PR for reference: cozy/cozy-notes#201
Before:
import { useFlag } from 'cozy-flags'
import flag, { FlagSwitcher } from 'cozy-flags'
After updating cozy-flags: useFlag
and FlagSwitcher
are undefined
.
Temporary fix:
import useFlag from 'cozy-flags/dist/useFlag'
import FlagSwitcher from 'cozy-flags/dist/FlagSwitcher'
import flag from 'cozy-flags'
Here everything is defined, but the import paths are non-idiomatic.