-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Enable Deployment from Git Repositories to Akash Network #358
Changes from 5 commits
001311a
93053db
774ed43
2c8636d
1dec0b3
ab30a3b
d7ef049
82e25fe
89f5d5c
5c125d5
6466920
dc35ad4
040a626
d047872
4fb2650
0a8a3eb
cf05236
a788457
6805c5a
f681b75
cf15e95
4ec0ee1
449c4e4
29591f1
5e5b392
7cd8536
21973f8
933c1a4
41a30c6
b9239ea
0d64352
a18e288
1d785ef
e2d66fc
5547af2
7c623b5
5491178
895d42c
cbf4dd9
69c0366
0bdadb4
18bdf90
874145c
c49d5d1
83ec32b
7e0d4f8
4c1c7a0
2cd1458
2841b9e
376bbfa
86428b0
6104d66
65c1d49
c86d5bc
1469353
01708cd
b9ed85b
29c8d5a
2da9923
a693d7a
6f38fa9
299fe33
c026375
5647200
bcf6b8d
5821792
1a2ab6b
c133100
999660c
beebec7
dfb4367
166016f
83a2a06
3052eca
368b22a
cc5beed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { useEffect } from "react"; | ||
|
||
export function useWhenNot<T>(condition: T, run: () => void, deps: unknown[] = [], ifNot: () => void): void { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is inherently misleading. It's read as generally you can use multiple calls to const condition: boolean
useWhen(condition, cb)
useWhen(!condition, cb) |
||
return useEffect(() => { | ||
if (condition) { | ||
run(); | ||
} else { | ||
if (ifNot) ifNot(); | ||
} | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [condition, ...deps]); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not set it to true by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or I guess you want to trigger the other
useEffect
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, need to trigger the other
useEffect