Skip to content

Multiple callbacks not supported? #102

Open
@Nilsen88

Description

@Nilsen88

I have created an application that can be added to a page and configured. For the twitter feed I've used the Post-Fetcher to retrieve twitter posts. I have an issue with the customCallback function. If I have several of the application parts on my page that use twitter the customCallback function gets the same context.

For each app this is added in the twitterConfig.
"customCallback" handleTweets.bind(this)

But in the handleTweets function the "this" context is overwritten by the last customCallback that is called. I think it might need to create an independent instance for each callback. But this is not implemented right?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions