-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
77 active page tab stuck once popping rdt out into new window (#80)
* #77 - Detached mode location tracking fix * action color change
- Loading branch information
1 parent
1f3045d
commit 99f38c4
Showing
32 changed files
with
834 additions
and
38 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ReactNode } from "react"; | ||
|
||
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
children: ReactNode | ||
} | ||
|
||
const Button = ({ children, ...props }: ButtonProps) => { | ||
return ( | ||
<button {...props}> | ||
{children} | ||
</button> | ||
); | ||
} | ||
|
||
export { Button }; |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function RouteComponent(){ | ||
return ( | ||
<div /> | ||
); | ||
} |
51 changes: 51 additions & 0 deletions
51
src/test-apps/remix-vite/app/routes/_layout.final_test.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import type { V2_MetaFunction } from "@remix-run/react/dist/routeModules"; | ||
import type { HeadersFunction, LinksFunction, LoaderArgs, ActionArgs } from "@remix-run/node"; | ||
import { useLoaderData, isRouteErrorResponse, useRouteError } from "@remix-run/react"; | ||
import type { ShouldRevalidateFunction } from "@remix-run/react"; | ||
|
||
export const links: LinksFunction = () => ( | ||
[ | ||
// your links here | ||
] | ||
); | ||
|
||
export const meta: V2_MetaFunction = () => [ | ||
// your meta here | ||
]; | ||
|
||
export const handle = () => ({ | ||
// your handler here | ||
}); | ||
|
||
export const headers: HeadersFunction = () => ( | ||
{ | ||
// your headers here | ||
} | ||
); | ||
|
||
export const loader = async ({ request }: LoaderArgs) => { | ||
return null; | ||
}; | ||
|
||
export const action = async ({ request }: ActionArgs) => { | ||
return null; | ||
}; | ||
|
||
export default function RouteComponent(){ | ||
const data = useLoaderData<typeof loader>() | ||
return ( | ||
<div /> | ||
); | ||
} | ||
|
||
export function ErrorBoundary(){ | ||
const error = useRouteError(); | ||
if (isRouteErrorResponse(error)) { | ||
return <div/> | ||
} | ||
return <div/> | ||
} | ||
|
||
export const shouldRevalidate: ShouldRevalidateFunction = () => { | ||
return true; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function RouteComponent(){ | ||
return ( | ||
<div /> | ||
); | ||
} |
51 changes: 51 additions & 0 deletions
51
src/test-apps/remix-vite/app/routes/_layout.one_more_time.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import type { V2_MetaFunction } from "@remix-run/react/dist/routeModules"; | ||
import type { HeadersFunction, LinksFunction, LoaderArgs, ActionArgs } from "@remix-run/node"; | ||
import { useLoaderData, isRouteErrorResponse, useRouteError } from "@remix-run/react"; | ||
import type { ShouldRevalidateFunction } from "@remix-run/react"; | ||
|
||
export const links: LinksFunction = () => ( | ||
[ | ||
// your links here | ||
] | ||
); | ||
|
||
export const meta: V2_MetaFunction = () => [ | ||
// your meta here | ||
]; | ||
|
||
export const handle = () => ({ | ||
// your handler here | ||
}); | ||
|
||
export const headers: HeadersFunction = () => ( | ||
{ | ||
// your headers here | ||
} | ||
); | ||
|
||
export const loader = async ({ request }: LoaderArgs) => { | ||
return null; | ||
}; | ||
|
||
export const action = async ({ request }: ActionArgs) => { | ||
return null; | ||
}; | ||
|
||
export default function RouteComponent(){ | ||
const data = useLoaderData<typeof loader>() | ||
return ( | ||
<div /> | ||
); | ||
} | ||
|
||
export function ErrorBoundary(){ | ||
const error = useRouteError(); | ||
if (isRouteErrorResponse(error)) { | ||
return <div/> | ||
} | ||
return <div/> | ||
} | ||
|
||
export const shouldRevalidate: ShouldRevalidateFunction = () => { | ||
return true; | ||
}; |
Oops, something went wrong.