Skip to content

Conversation

@cowsed
Copy link
Contributor

@cowsed cowsed commented Nov 3, 2025

Periodic scan through and fix of general warnings. Mostly

  • unused imports
  • exports that mess with hot-reloading
  • vars used where const ought've

@cowsed cowsed marked this pull request as ready for review November 3, 2025 00:46
import React, { useState } from "react";
import Page from "../../Page";
import Explainer from "./Explainer";
import { gql, useQuery } from "@apollo/client";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting a warning that says 'gql' is defined but never used. Allowed unused vars must match /^_/u from the frontend build. Was this left in on purpose for something in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops that as an oversight on my part, thanks for catching that. fixed now.

I think now all the remaining ones are larger things that should be addressed separately but lmk if you think differently.


const [name, setName] = useState("");
const [imageUrl, setImageUrl] = useState("");
const [imageUrl, _] = useState("");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels silly to use useState here, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent point, just gonna use an empty string

Copy link
Contributor

@ZZwatermelon ZZwatermelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to do the cool remove warning PR this time ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants