Skip to content

Commit ac275e5

Browse files
feat: add auto change history url
1 parent b382cfe commit ac275e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

website/src/components/astGrep/state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export function useSgState() {
127127
provide(astGrepStateKey, refs)
128128
watch(() => state, state => {
129129
storeStateInLocalStorage(state)
130+
history.replaceState({}, '', '#' + serialize(state))
130131
}, { deep: true })
131132
return {
132133
state,

0 commit comments

Comments
 (0)