Skip to content

Commit

Permalink
rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Sep 27, 2024
1 parent 2935aba commit e6b5464
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions dist/signals/syncSignals.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/signals/syncSignals.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/signals/syncSignals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ export function syncSignals<T>(
createComputed(
// @ts-ignore not all code paths return
() => {
const _a = getterA()
const a = getterA()
if (settingA) return (settingA = false)
settingB = true
setterB(_a)
setterB(a)
},
)

createComputed(
// @ts-ignore not all code paths return
() => {
const _b = getterB()
const b = getterB()
if (settingB) return (settingB = false)
settingA = true
setterA(_b)
setterA(b)
},
)

Expand Down

0 comments on commit e6b5464

Please sign in to comment.