Skip to content

shareReplay is forbidden unless a config argument is passed #127

@sonikasharma1403

Description

@sonikasharma1403

const SHARE_REPLAY_CONFIG = { bufferSize: 1, refCount: true }; observable.pipe(shareReplay(SHARE_REPLAY_CONFIG))

I am using a constant variable and then passing it to the shareReplay operator. If we do this, lint throws shareReplay is forbidden unless a config argument is passed. Replacing the variable with the object fixes the issues. shouldn't the type be infered?

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