This file contains 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
#!/bin/sh | |
squash_branch() { | |
# Usage: squash_branch [branch_name] | |
# This is an implementation of Option 1 here: https://blog.oddbit.com/post/2019-06-17-avoid-rebase-hell-squashing-wi/ | |
# WARNING: This function will delete the target branch and replace it with a squashed version of itself | |
BASE_BRANCH="master" | |
if [ -z "$1" ]; then |
This file contains 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
/** | |
* A combined ref implementation using the callback ref cleanups feature. | |
* This will work in React 19. | |
*/ | |
import { Ref, useCallback } from 'react'; | |
type OptionalRef<T> = Ref<T> | undefined; | |
type Cleanup = (() => void) | undefined | void; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
🗣 Commented on #115 in ReactUnity/core | |
🗣 Commented on #114 in ReactUnity/core | |
❗️ Closed issue #114 in ReactUnity/core | |
🗣 Commented on #111 in ReactUnity/core | |
🗣 Commented on #111 in ReactUnity/core |