Skip to content

Commit

Permalink
fix(remix): ESLint corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilewski committed Oct 31, 2023
1 parent b128a98 commit c5acf18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/remix/src/client/RemixOptionsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ClerkRemixOptionsCtx = React.createContext<{ value: ClerkRemixContextValue
ClerkRemixOptionsCtx.displayName = 'ClerkRemixOptionsCtx';

const useClerkRemixOptions = () => {
const ctx = React.useContext(ClerkRemixOptionsCtx)!;
const ctx = React.useContext(ClerkRemixOptionsCtx) as { value: ClerkRemixContextValue };
return ctx.value;
};

Expand Down
2 changes: 0 additions & 2 deletions packages/remix/src/ssr/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export const injectRequestStateIntoResponse = async (
requestState: RequestState,
context: AppLoadContext,
) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const clone = response.clone();
const data = await clone.json();

Expand Down Expand Up @@ -151,7 +150,6 @@ export function injectRequestStateIntoDeferredData(
* @internal
*/
export function getResponseClerkState(requestState: RequestState, context: AppLoadContext) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { reason, message, isSignedIn, isInterstitial, ...rest } = requestState;
const clerkState = wrapWithClerkState({
__clerk_ssr_state: rest.toAuth(),
Expand Down

0 comments on commit c5acf18

Please sign in to comment.