Skip to content

Commit

Permalink
refactor: use explicit Polyfill suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
magicdawn committed Dec 29, 2024
1 parent 1207375 commit f57bc46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/RecGrid/useRefresh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useRefStateBox, type RefStateBox } from '$common/hooks/useRefState'
import { TabConfig } from '$components/RecHeader/tab-config'
import { ETab } from '$components/RecHeader/tab-enum'
import type { RecItemTypeOrSeparator } from '$define'
import { AsyncDisposableStack } from '$modules/polyfills/explicit-resource-management'
import { AsyncDisposableStackPolyfill } from '$modules/polyfills/explicit-resource-management'
import { getGridRefreshCount } from '$modules/rec-services'
import {
getDynamicFeedServiceConfig,
Expand Down Expand Up @@ -71,7 +71,7 @@ export function useRefresh({

const refresh: OnRefresh = useMemoizedFn(async (reuse = false) => {
const start = performance.now()
await using stack = new AsyncDisposableStack()
await using stack = new AsyncDisposableStackPolyfill()

// when already in refreshing
if (refreshingBox.value) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as AsyncDisposableStack } from 'core-js-pure/actual/async-disposable-stack'
export { default as DisposableStack } from 'core-js-pure/actual/disposable-stack'
export { default as AsyncDisposableStackPolyfill } from 'core-js-pure/actual/async-disposable-stack'
export { default as DisposableStackPolyfill } from 'core-js-pure/actual/disposable-stack'
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
*/

import './1.setup'
export { AsyncDisposableStack, DisposableStack } from './2.export'
export { AsyncDisposableStackPolyfill, DisposableStackPolyfill } from './2.export'

0 comments on commit f57bc46

Please sign in to comment.