Skip to content

Commit 81c87a2

Browse files
committed
Pass along unstable_pattern to the chained loader
1 parent ed519af commit 81c87a2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app/javascript/TicketTypeAdmin/loaders.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,26 @@ function getSingleTicketType(ticketTypes: TicketTypeLoaderResult['ticketTypes'],
3939
return ticketType;
4040
}
4141

42-
export const adminSingleTicketTypeLoader: LoaderFunction = async ({ request, params: { id } }) => {
42+
export const adminSingleTicketTypeLoader: LoaderFunction = async ({ request, params: { id }, unstable_pattern }) => {
4343
const { ticketTypes } = (await adminTicketTypesLoader({
4444
params: {},
4545
request,
4646
context: {},
47+
unstable_pattern,
4748
})) as TicketTypeLoaderResult;
4849
return getSingleTicketType(ticketTypes, id ?? '');
4950
};
5051

51-
export const eventSingleTicketTypeLoader: LoaderFunction = async ({ request, params: { id, eventId } }) => {
52+
export const eventSingleTicketTypeLoader: LoaderFunction = async ({
53+
request,
54+
params: { id, eventId },
55+
unstable_pattern,
56+
}) => {
5257
const { ticketTypes } = (await eventTicketTypesLoader({
5358
params: { eventId },
5459
request,
5560
context: {},
61+
unstable_pattern,
5662
})) as TicketTypeLoaderResult;
5763
return getSingleTicketType(ticketTypes, id ?? '');
5864
};

0 commit comments

Comments
 (0)