Skip to content

"Using null as a rangeBehavior value is deprecated" when using "ignore" #1337

Closed
X-oss-byte/next.js
#1421
@miracle2k

Description

@miracle2k

I implement rangeBehaviours as a function and return "ignore". Relay shows me this warning:

Usingnullas a rangeBehavior value is deprecated. Useignoreto avoid refetching a range.
Callsite:

if (!rangeBehavior || rangeBehavior === IGNORE) {

Is the condition there wrong? I'm thinking it might need to be (!rangeBehavior && rangeBehavior !== IGNORE)

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