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

Script run after reload [BUG(?)] #93

Open
ChrisW-priv opened this issue Feb 6, 2025 · 0 comments
Open

Script run after reload [BUG(?)] #93

ChrisW-priv opened this issue Feb 6, 2025 · 0 comments

Comments

@ChrisW-priv
Copy link

Hi! I successfully build the example using my very limited knowledge about JS world.

I have a question: is "full rerun" of scripts expected when I do refresh on the page? What I encountered is this:

  1. I start on home
  2. Click 'about' href and get:

Image

  1. I click refresh (or ctrl+R) and get:

Image

So this means that the state is lost no? So all user has to do to get logged out is click ctrl+r by accident even and his session is lost?
As I said: I am VERY new to this so please tell me if maybe I'm doing something wrong (probably)

Steps to reproduce:

  1. Clone repo
  2. Run npm i flamethrower-router
  3. Run npm run dev

Caveat: npm run dev did not actually ever exit. I waited like a 1min but got stuck on:

$ npm run dev
                                                                                                                                                                                                                 > [email protected] dev
> vite build --watch

vite v3.0.7 building for production...
                                                                                                                                                                                                                 watching for file changes...
                                                                                                                                                                                                                 build started...
✓ 4 modules transformed.
dist/main.js   7.48 KiB / gzip: 2.62 KiB
dist/main.umd.cjs   5.77 KiB / gzip: 2.39 KiB
built in 297ms.
copied bundle to example

# I never get the exit(0), so I kill it with ^C
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

No branches or pull requests

1 participant