Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 24, 2022
1 parent 66c9783 commit e3a37a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/derive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getSubscriptions = (proxyObject: object) => {
// It's not expected to use this in production.
export const unstable_getDeriveSubscriptions = getSubscriptions

// to make derive glitch free
// to make derive glitch free: https://github.com/pmndrs/valtio/pull/335
const pendingCountMap = new WeakMap<object, number>()
const markPending = (proxyObject: object) => {
const count = pendingCountMap.get(proxyObject) || 0
Expand Down
2 changes: 1 addition & 1 deletion tests/derive.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ it('basic underive', async () => {
expect(callback).toBeCalledTimes(1)
})

describe('glich free', () => {
describe('glitch free', () => {
it('basic (#296)', async () => {
const state = proxy({ value: 0 })
const derived1 = derive({
Expand Down

0 comments on commit e3a37a0

Please sign in to comment.