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

Infinite refresh loop when install plugin routes after starting the Prototype Kit #70

Open
simonwo opened this issue Sep 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@simonwo
Copy link
Member

simonwo commented Sep 20, 2024

Not sure why this happens, I suspect something to do with stale state on the page. The workaround is to close the tab and then start again, but we should do something about this because the instructions ask the user to run the PK before modifying the routes.

  1. Create a new app and install the plugin
  2. Open the documentation page for the plugin as requested
  3. Make changes to the routes
  4. Observe infinite loop of refreshing
@simonwo simonwo added the bug Something isn't working label Sep 20, 2024
@alaric-rd alaric-rd self-assigned this Sep 25, 2024
@alaric-rd
Copy link
Contributor

I am failing to recreate this.

I followed the steps:

  1. Made a new app and installed the plugin via make prototype NAME=test
  2. Found the plug in the plugins list at http://localhost:3000/manage-prototype/plugins-installed and clicked Help
  3. As per the instructions, pasted the extra lines into app/routes.js
  4. Went on to follow the instructions, adding my pages from the templates, then used my prototype to upload a .xlsx file

...all worked fine (Firefox 128.0 on NixOS). What am I doing wrong?

@rossjones
Copy link
Collaborator

rossjones commented Nov 11, 2024

It might possibly be related to alphagov/govuk-prototype-kit#2388 which suggests that the code here is to blame which is triggered by hasRestartedAfterError looking for the presence of an error file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants