-
Notifications
You must be signed in to change notification settings - Fork 0
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
First-run issues: Does not load some pages on first attempt #313
Comments
Same happens the first time I try to open a workflow. Nothing suspicious in the log of server & web that I can see though |
To reproduce this it is necessary to generate a new tag and restart the app. You can notice that when you create a new workflow for the first time (and you are erroneously redirected back to the previous page) the Svelte logs displays the following:
A similar thing happens when you try to list the jobs for the first time:
So, it's vite that, when detects a new dependency inside the page, optimize it and then reload the page, causing the weird behavior. This should happen only on dev mode, but since it could cause issues with automated tests I fixed it adding the following to the vite.config.js: optimizeDeps: {
include: ['slim-select', 'marked', 'dompurify', 'semver', 'ajv', '@vincjo/datatables']
} More here: I've tried to disable the feature at all instead of listing all the dependencies but it doesn't seem to work with our configuration:
|
Thanks Sonia for the explanation, I understand at least a part of it ;) Two quick comments:
|
Ok, I can have a look on it.
Docs says: "Dependency optimization is enabled by default in dev only." and "Optimizing dependencies in build mode is experimental.", so I think that disabling it in dev (by setting it to |
As quickly discussed, |
There's a weird behavior I've seen a few times in the past and now observed again when testing 0.6.0 (=> not new to 0.6.0):
When starting a fresh setup, sometimes the first time one clicks on certain pages, they don't load (they start loading, then send one back to the page one loaded from). The second time I load that page, everything works as expected.
For example: Create a project, submit a workflow. From the project page, go to the Jobs page. First time I do that, jobs page briefly flashes up, then project page reloads. Every following time, I get to the job page correctly.
Besides observing this in fresh installation, I don't have a way to reproduce it yet and not sure what exactly triggers this.
The text was updated successfully, but these errors were encountered: