Multipage Beta Bug: Preview after publish is broken

Hey,

First off overall I'm loving this new feature, really improves development time!

We just noticed a bug with previewing after publishing, any queries that have been made since publishing (release) don't work - "Unable to retrieve information about the query" is the error.

The cause:

  • Clicking "Preview" after making changes since a release publish will take you to a URL ending in "?_releaseVersion=latest"
  • Clicking on a different page will remove that from the URL, so it is pointing at the wrong thing server side for your Queries to be found by the client.
  • Interestingly it still says "Latest" at the top, and the UI Components are up to date but the back end queries are not.

Below is when you first click preview:
image

Here is when you navigate to a different page from that preview:
image

The workaround:

  • Manually pasting "?_releaseVersion=latest" on the end of the URL every time I switch page when previewing changes made, such as:

image

Additional Info

  • Goal: To preview a change to a non-home page after releasing a publish with the new Multipage, without having to paste the version number/latest in as a query param.

  • Repro Steps: Create a multipage app, setup multiple different pages, with queries loading data into tables (or anything using any server side query, not JavaScript), publish it, then make further edits (new queries), and preview -> It will show the UI for the new changes but not be able to find the newly created Queries since a publish. (Does not affect draft publishes)

  • Screenshots:
    The error from console:
    image

2 Likes

Thanks for this detailed bug report, @Tom_Brandwood Our team is looking in to this issue! I'll reach back out when we have a fix

2 Likes

It looks like the fix should be going out later today :slightly_smiling_face:

1 Like

Brilliant! Thank you :smiley: