Skip to content

Commit

Permalink
fix: pass search query directly to solara (#320)
Browse files Browse the repository at this point in the history
Before, we ran the solara component with an empty search query first,
and then updated the search query. This caused a flicker in the UI.
  • Loading branch information
maartenbreddels committed Oct 5, 2023
1 parent 3996531 commit 49082d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solara/server/static/main-vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async function solaraInit(mountId, appName) {
let widgetManager = new solara.WidgetManager(context, rendermime, settings);
// it seems if we attach this to early, it will not be called
app.$data.loading_text = 'Loading app';
const path = window.location.pathname.slice(solara.rootPath.length);
const path = window.location.pathname.slice(solara.rootPath.length) + window.location.search;
const widgetId = await widgetManager.run(appName, path);
await solaraMount(widgetManager, mountId || 'content', widgetId);
skipReconnectedCheck = false;
Expand Down

0 comments on commit 49082d6

Please sign in to comment.