This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -e | |
| mkdir worktree-repro | |
| cd worktree-repro | |
| # Initialize bare repo inside `.bare` | |
| git --bare init .bare | |
| # Create a .git file to help `git` access the actual .git dir (= .bare) | |
| echo 'gitdir: ./.bare' > .git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useState } from "react"; | |
| import { useActivateLoaderBoundary } from "#/components/suspense-activity"; | |
| export function useResource<T>({ | |
| load, | |
| unload, | |
| }: { | |
| load: () => Promise<T> | T; | |
| unload?: () => Promise<void> | void; | |
| }) { |
OlderNewer