()
| 51 | * context is unavailable. |
| 52 | */ |
| 53 | export const getIsRestoringContext = (): Box<boolean> => { |
| 54 | try { |
| 55 | const isRestoring = getContext<Box<boolean> | undefined>( |
| 56 | _isRestoringContextKey, |
| 57 | ) |
| 58 | return isRestoring ?? { current: false } |
| 59 | } catch (error) { |
| 60 | return { current: false } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Sets a `isRestoring` on Svelte's context. |
no outgoing calls
no test coverage detected