-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add useInterval Hook, Refactor Live to use useInterval #1964
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
Add useInterval Hook, Refactor Live to use useInterval #1964
Conversation
cd2bf1b to
b9e1044
Compare
packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Live/Live.tsx
Outdated
Show resolved
Hide resolved
b9e1044 to
fe832ce
Compare
packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Live/Live.tsx
Outdated
Show resolved
Hide resolved
bdfc425 to
372ffcd
Compare
4b69f85 to
2a3c313
Compare
packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Live/LiveButton/LiveButton.tsx
Show resolved
Hide resolved
| `; | ||
|
|
||
| interface ButtonProps extends HTMLButtonElement { | ||
| disable?: boolean; |
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 is this disable and not disabled?
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.
I think that's what we had on the button props previously. Feel free to change.
packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Live/LiveInfo/LiveInfo.tsx
Outdated
Show resolved
Hide resolved
2a3c313 to
72c637a
Compare
c297986 to
ec7ec48
Compare
da7f8c0 to
8790a29
Compare
|
@SaraVieira Since all checks pass, I think this one can be merged after a last review 🙂 |
8790a29 to
a8e6be2
Compare
a8e6be2 to
f4959e6
Compare
|
I'm going to test this one by:
|
|
@CompuIves Will rebase to fix file conflicts later today 🙂 |
f4959e6 to
3ea0ca2
Compare
dd41b70 to
9ce49aa
Compare
|
@CompuIves All green again, only needs testing now 🙂 |
9ce49aa to
bc9664d
Compare
Added a useInterval Hook (demo here: https://codesandbox.io/s/sessiontimer-useinterval-hook-demo-0l6jq) Refactored Live workspace item and it's dependents to use hooks.
bc9664d to
c7ec652
Compare
|
Ping @CompuIves |
|
Closed this for the same reasons #1925 is closed |
What kind of change does this PR introduce?
I've extracted @Saeris' changes to
Liveout of #1925.What is the current behavior?
What is the new behavior?
useIntervalhookuseIntervalhook inLiveChecklist: