Skip to content

Commit 57c62d9

Browse files
committed
Move around fixload comment
1 parent 193cd2d commit 57c62d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/js/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,12 @@ export function Navigate({
114114

115115
/**
116116
* FirstLoad component that captures the URL during the initial page load and notifies the server.
117+
*
118+
* FIXME: This component only exists because of a ReactPy core rendering bug, and should be removed when the bug
119+
* is fixed. In the future, all this logic should be handled by the `History` component.
120+
* https://github.com/reactive-python/reactpy/pull/1224
117121
*/
118122
export function FirstLoad({ onFirstLoadCallback }: FirstLoadProps): null {
119-
// FIXME: This component only exists because of a ReactPy core rendering bug, and should be removed when the bug
120-
// is fixed. Ideally all this logic would be handled by the `History` component.
121-
// https://github.com/reactive-python/reactpy/pull/1224
122123
React.useEffect(() => {
123124
onFirstLoadCallback(createLocationObject());
124125
return () => {};

0 commit comments

Comments
 (0)