always re-run preload functions when query string changes - fixes #701

This commit is contained in:
Richard Harris
2019-05-20 23:45:39 -04:00
parent aa31e3ca6a
commit b6e2736eb0
3 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
<script context="module">
export function preload(page) {
return {
query: page.query
};
}
</script>
<script>
export let query;
</script>
<pre>{JSON.stringify(query)}</pre>
<a href="echo?foo=1">foo=1</a>
<a href="echo?foo=2">foo=2</a>
<a href="echo?foo=3">foo=3</a>