Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.
This repository was archived by the owner on May 11, 2024. It is now read-only.

SubLite onReady not called while cache is active #12

@tcastelli

Description

@tcastelli

Hello, I know this might not get any reply, but just in case I'm not sure about the behaviour of subscribeLite and the onReady function if the cache is active. After some debugging, I see that this code is called

if (cachedSubHandle) {
    // If the sub was cached and is still active, just reuse it
    if (isCachedSubHandleActive) return cachedSubHandle; <-----

after returning that cacheSubHandle, sice it has the ready field already set to true, it looks like the the onReady is not called again. Is that on purpose or a bug?

I could try to open a PR if you confirm what is the desired behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions