Skip to content

2.0.0-beta-4 inconsistent stores read after write #2649

@mizulu

Description

@mizulu

Describe the bug

setting store values inconsistent value reads after set

Case A

https://solid2.netlify.app/#solidjs-repl:FLW_W6XfQlaEdGeCVIIS6g
setting existing keys reflect right away
Image

Case B

setting a new key is not reflected, even with flush
https://solid2.netlify.app/#solidjs-repl:FywjO6ucRv2tLruS8ebs0g
Image

Case C

settign a new key is reflected with flush only when there is also an effect
https://solid2.netlify.app/#solidjs-repl:sPS0n-syQ-yTS_cLUBOhGQ
Image

Your Example Website or App

.

Steps to Reproduce the Bug or Issue

.

Expected behavior

consistency

Screenshots or Videos

No response

Platform

.

Additional context

No response

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