question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text for checked Todos disappears after routing to a different page and then returning

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SarcevicAntoniocommented, Jan 26, 2022

A friend told me about this and I can reproduce this issue too. For him the text for some non-checked items also disappeared.

0reactions
bruceglcommented, Mar 29, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found