Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte 5: $inspect not showing updated collection for objects exported from svelte/reactivity #11151

Closed
harrisi opened this issue Apr 12, 2024 · 4 comments · Fixed by #11553
Closed
Assignees
Milestone

Comments

@harrisi
Copy link

harrisi commented Apr 12, 2024

Describe the bug

$inspect will correctly see updates, but the outputted value is always the initial value of the ReactiveSet or ReactiveMap.

For ReactiveDate, it seems updates aren't seen at all.

Reproduction

repl

Logs

No response

System Info

repl

Severity

annoyance

@tanhauhau
Copy link
Member

the issue with ReactiveSet and ReactiveMap and the repl is that the REPL is not showing the content correctly. if you open up the browser console, you should see the content correctly.

@trueadm
Copy link
Contributor

trueadm commented May 10, 2024

Hasn't this since been fixed?

@harrisi
Copy link
Author

harrisi commented May 11, 2024

I'm not sure. ReactiveDate still doesn't log anywhere with $inspect when setting seconds, it seems, and the ReactiveSet and ReactiveMap log ReactiveSet {} and ReactiveMap {} respectively. You can see the logs in Chrome, but it's just because they break JavaScript semantics by making private fields public. It shows the raw signals.

@trueadm
Copy link
Contributor

trueadm commented May 11, 2024

We need to update ReactiveDate so that it works better with inspect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants