Skip to content

Dynamic topic subscriptions?  #6

@alc6379

Description

@alc6379

I'm looking to make a reusable Component, each one subscribing to a different topic. In the code examples, the subscribe function is hard-coded to a particular topic. How can I dynamically do this? Say I have an array of topics, and I wanted to do a .map() function that creates a component using subscribe(). What's the recommended way of providing the topic to the component I'm instantiating?

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