Skip to content

fetch() caches previous responses, returns bad results #33

@kabirsikand

Description

@kabirsikand

When an array is returned from a fetch() call, any consecutive fetch() calls use the same (cached) array as a response, overwrite it with any incoming indices, and returns the resulted array to the caller.
e.g.

some_link_resource.fetch() ->
network response: [ object1, object2, object3, object4 ]
fetch results: [ object1, object2, object3, object4 ]

some_other_link_resource.fetch() ->
network response: [ object5, object6 ]
fetch results: [ object5, object6, object3, object4 ]

some_third_link_resource.fetch() ->
network response: [ ]
fetch results: [ object5, object6, object3, object4 ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions