Text for checked Todos disappears after routing to a different page and then returning
See original GitHub issueDescribe the bug
On the SvelteKit demo, I can create some Todo items and check some of them. If I then navigate to home or about and then go back to todos, the list of items are not correctly rendered because the items that were previously check are now shown as empty strings.
Reproduction
https://github.com/sveltejs/kit
Logs
No response
System Info
System:
OS: Linux 5.4 Linux Mint 20.2 (Uma)
CPU: (4) x64 Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz
Memory: 259.31 MB / 15.51 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.13.0 - /usr/local/bin/node
npm: 8.3.0 - /usr/local/bin/npm
Browsers:
Chrome: 97.0.4692.99
Firefox: 96.0.1
npmPackages:
@sveltejs/adapter-auto: next => 1.0.0-next.15
@sveltejs/kit: next => 1.0.0-next.241
svelte: ^3.44.0 => 3.46.2
Severity
annoyance
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Warning: Cannot update a component (`xxx`) while rendering ...
I have the same issue. It is caused by setting pageTitle (displayed in explorer tab and history) in each component after routing using...
Read more >Content disappears when using the <Route> tag
Check you're package.json if the version of react-router-dom is 6 then ... Since the route tag is empty, you aren't returning anything.
Read more >Handling common HTML and CSS problems - MDN Web Docs
In the Search packages text field, type "lint" and press Enter/Return to search for linting-related packages. You should see a package called ...
Read more >Router tutorial: tour of heroes - Angular
This tutorial provides an extensive overview of the Angular router. In this tutorial, you build upon a basic router configuration to explore features...
Read more >Routing in ASP.NET Core - Microsoft Learn
Endpoints are defined in the app and configured when the app starts. The endpoint matching process can extract values from the request's URL...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A friend told me about this and I can reproduce this issue too. For him the text for some non-checked items also disappeared.
Thanks @geoffrich and @melkir and apologies for the delay. Fixed for me, though there is a bit of a pause when items are added or deleted