Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Optional connection #62

@takokoren

Description

@takokoren

I would like to control the connection using a state value. Can you please add a Boolean property "connect" to the Connector which will indicate if to perform a connection or not.
This will support:
`
const [connect, setConnet) = useState(false);

return (
<Connector connect={connect}
{children components here that will optionally require mqtt}
</Connector
)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions