Skip to content

[Bug Report] updateResult breaks the reference stability of result.data #7

@ylc395

Description

@ylc395
Image

According to the official document, result.data's reference will be as stable as possible., including its contents.

However, after updateResult, everything on the data(including data itself) is not the original one anymore. This will always cause re-render in view library ( I'm using solidjs, <For> cache the iteration by the reference)

FYI: According to this mobx issue, every time we reassign an observable property, that property will lose its original reference. Maybe we should do some workaround 🤔?If there is nothing we can do, we'd better disable replaceData by set structuralSharing to false, to get a better performance, and document this in README

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