Skip to content

Commit

Permalink
Update approach for silencing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Dec 20, 2024
1 parent e05150d commit 9c35c5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-bears-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/dev": patch
---

[REMOVE] Fix implementation of flag warning supression
4 changes: 2 additions & 2 deletions packages/remix-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ export async function resolveConfig(
}
}

logFutureFlagWarnings(future);
logFutureFlagWarnings(appConfig.future || {});

isFirstLoad = false;

Expand Down Expand Up @@ -881,7 +881,7 @@ function logFutureFlagWarning(args: { flag: string; message: string }) {
});
}

export function logFutureFlagWarnings(future: FutureConfig) {
export function logFutureFlagWarnings(future: Partial<FutureConfig>) {
if (future.v3_fetcherPersist === undefined) {
logFutureFlagWarning({
flag: "v3_fetcherPersist",
Expand Down

0 comments on commit 9c35c5f

Please sign in to comment.