Skip to content

Clarification on network.intercept #380

@decaffeinatedio

Description

@decaffeinatedio

Am I correct in understanding that there can only be a single network.intercept block per context? That is my takeaway from the following in the readme:

You used to call authorize method without block, but since it's implemented using request interception there could be a collision with another part of your code that also uses request interception, so that authorize allows the request while your code denies but it's too late. The block is mandatory now.

But I'm not asking exclusively about the authorize case -- will having two network.intercept blocks operating on the same context cause unexpected behavior?

Thanks!

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