In one of my components, I have this:
const [isOpen, setIsOpen] = createSignal(Boolean(props.state.notes));
The intent is to show the notes data for this particular instance of the component if the notes data passed in (via a store) is not empty string, or other falsey value.
This code does work as intended, as far as I can tell.
However, I'm getting the following warning from the reactivity rule in eslint-plugin-solid:
The reactive variable 'props.state.notes' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function
I can't seem to find a construction that the rule is happy with. I've attempted creating a separate function to retrieve the notes from the props, as well as doing a splitProps.