-
Notifications
You must be signed in to change notification settings - Fork 43
Fix incorrect type definitions in useCallback #97
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
Changes from 11 commits
d3cfc22
e6792a5
7ee684c
f1422b4
433a290
c2e6788
2c40d7e
0ea62b1
70c1ea5
1645b13
fcc50d7
40ba48d
358b462
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,8 @@ let arrayToList = a => { | |
let pathParse = str => | ||
switch str { | ||
| "" | ||
| "/" => list{} | ||
| "/" => | ||
list{} | ||
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. Why this format change? 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. In my editor, vsc, it formats 🤔 The version of extension is v1.18.0 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. Need to revert it? 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. Ah, right, same for me. Not necessary to revert it, but this formatting is a bit weird, I will report it in the compiler repo. 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. Ah no, sorry, it is correct that way, as the line above does not have a Maybe better to rewrite in one line as |
||
| raw => | ||
/* remove the preceeding /, which every pathname seems to have */ | ||
let raw = Js.String.sliceToEnd(~from=1, raw) | ||
|
@@ -190,7 +191,7 @@ let useUrl = (~serverUrl=?, ()) => { | |
} | ||
) | ||
|
||
React.useEffect0(() => { | ||
React.useEffectOnEveryRender(() => { | ||
cknitt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
let watcherId = watchUrl(url => setUrl(_ => url)) | ||
|
||
// check for updates that may have occured between the initial state and | ||
|
Uh oh!
There was an error while loading. Please reload this page.