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

Change useCustomSWR to allow extra JSON parameter #410

Open
jacoblurie29 opened this issue Oct 16, 2023 · 0 comments
Open

Change useCustomSWR to allow extra JSON parameter #410

jacoblurie29 opened this issue Oct 16, 2023 · 0 comments
Assignees

Comments

@jacoblurie29
Copy link
Collaborator

Bug Report

This is a bug report. You can track this issue in the organizer dashboard.

Reporter Information

Role: Organizer
Issue was reported on 10/16/2023, 1:42:28 AM CT

Description

useSWR allows us to pass in an extra JSON, for example:

const { data: user } = useSWR(
		'/api/user-data',
		async url => {
			const res = await fetch(url, { method: 'GET' });
			return (await res.json()) as UserData;
		},
		{ revalidateOnFocus: false, revalidateOnMount: true }
);

Our useCustomSWR should allow us to do this.

@jacoblurie29 jacoblurie29 self-assigned this Oct 16, 2023
@jacoblurie29 jacoblurie29 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2023
@jacoblurie29 jacoblurie29 reopened this Oct 23, 2023
@jacoblurie29 jacoblurie29 changed the title [BUG REPORT] Bug found by an organizer on 10/16/2023 at 1:42 AM Change useCustomSWR to allow extra JSON parameter Oct 23, 2023
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

No branches or pull requests

1 participant