Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(use-url-search-params): missing initial url params (#340)
* fix: initial URLSearchParams missing * chore: update docs
- Loading branch information
1 parent
4125d43
commit f8d4f1a
Showing
5 changed files
with
38 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
<script setup lang="ts"> | ||
import { useUrlSearchParams } from '.' | ||
const params = useUrlSearchParams('history', { window: window.parent }) | ||
params.foo = 'bar' | ||
params.vueuse = 'awesome' | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<ul> | ||
<li v-for="key in Object.keys(params)" :key="key"> | ||
{{ key }}={{ params[key] }} | ||
</li> | ||
</ul> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters