Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/organizing a bit #1

Merged
merged 3 commits into from Sep 12, 2022
Merged

refactor/organizing a bit #1

merged 3 commits into from Sep 12, 2022

Conversation

jeffxie888
Copy link
Collaborator

Separated out queries and components out of App.tsx to add a little organization

Copy link
Contributor

@sdcoffey sdcoffey left a comment

Choose a reason for hiding this comment

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

Looks great Jeff! Added a few thoughts, but nothing blocking

src/queries/topSymbols.ts Outdated Show resolved Hide resolved
src/queries/watchListQuery.ts Outdated Show resolved Hide resolved
const initialWatchList = ["S:VTI", "S:SPY", "C:BTC-USD"];

type WatchListProps = {
wlLoading: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just an idea: one thing I've seen done before when you don't want to pass a whole bunch of data up and down the component stack is to use graphql-batch-loader which allows you to break up a huge graphql query and place the relevant pieces inside the components that need them, and then the link will batch them all up. Not saying we should do that now, just pointing it out as an option if this pattern becomes annoying to manage.

src/App.tsx Show resolved Hide resolved
@jeffxie888 jeffxie888 merged commit c9f3dc3 into main Sep 12, 2022
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.

None yet

2 participants