Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: reduce dashboard requests from seeded data#13034

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 9 commits intomainfromredundantreqs
Apr 22, 2024
Merged

Conversation

kylecarbs
Copy link
Member

We already inject all of this content inindex.html.

There was also a bug with displaying a loading indicator when the workspace proxies endpoint 404s.

We already inject all of this content in `index.html`.There was also a bug with displaying a loading indicator whenthe workspace proxies endpoint 404s.
queryKey: meKey,
initialData: initialUserData,
queryFn: API.getAuthenticatedUser,
};
// If we have initial user data, we don't want to fetch
// the user again. We already have it!
if (initialUserData) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

I think we may could create some util inapi/queries/utils to reuse the cache configuration across queries:

exportconstcachedQuery={cacheTime:Infinity,staleTime:Infinity,refetchOnMount:false,refetchOnReconnect:false,refetchOnWindowFocus:false,}

So it could be used like this:

constopts:UseQueryOptions<BuildInfoResponse>={   ...cachedQuery,queryKey:buildInfoKey,initialData:initialBuildInfoData,queryFn:()=>API.getBuildInfo(),};

@kylecarbs
Copy link
MemberAuthor

@BrunoQuaresma will do!

@kylecarbskylecarbs changed the titlechore: reduce requests the dashboard makes from seeded datachore: reduce dashboard requests from seeded dataApr 22, 2024
@kylecarbskylecarbs merged commitd3f3ace intomainApr 22, 2024
@kylecarbskylecarbs deleted the redundantreqs branchApril 22, 2024 20:07
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 22, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

@Kira-PilotKira-PilotAwaiting requested review from Kira-Pilot

Assignees

@kylecarbskylecarbs

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@kylecarbs@BrunoQuaresma

[8]ページ先頭

©2009-2025 Movatter.jp