launchdarkly/ld-find-code-refs

Finding flag used via the React sdk

mustafashabib opened this issue · 1 comments

Hey all

We use the useFlags hook in the React sdk and this tool doesn't seem to pick up those flags. Is that a known issue? Is there a workaround? Guessing something like:

const { myFlagName } = useFlags();

isn't picked up because it's camel cased instead of hyphenated?

Thanks

Oops my bad, this is a duplicate and known issue. Will workaround as recommended in docs.