From 5891572b55dbb63996e66579bbba6998ad12a359 Mon Sep 17 00:00:00 2001 From: Remix Run Bot Date: Thu, 8 Aug 2024 17:49:47 +0000 Subject: [PATCH] chore: format --- docs/guides/data-loading.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guides/data-loading.md b/docs/guides/data-loading.md index 51825c677dc..f81b6edd11a 100644 --- a/docs/guides/data-loading.md +++ b/docs/guides/data-loading.md @@ -631,7 +631,9 @@ You might want to make an abstraction for checkboxes like this: function SearchCheckbox({ name, value }) { const [searchParams] = useSearchParams(); - const paramsIncludeValue = searchParams.getAll(name).includes(value); + const paramsIncludeValue = searchParams + .getAll(name) + .includes(value); const [checked, setChecked] = React.useState( paramsIncludeValue );