Skip to content

Commit

Permalink
Fix typo in variable name. (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel authored Apr 9, 2024
1 parent 9885b81 commit f6f227d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/next-ai-rsc/app/stream-object/generate-itinerary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function submitItineraryRequest({
}) {
'use server';

const itineraryCompoent = createStreamableUI(<ItineraryView />);
const itineraryComponent = createStreamableUI(<ItineraryView />);
const isGenerating = createStreamableValue(true);

experimental_streamObject({
Expand All @@ -39,19 +39,19 @@ export async function submitItineraryRequest({
.then(async result => {
try {
for await (const partialItinerary of result.partialObjectStream) {
itineraryCompoent.update(
itineraryComponent.update(
<ItineraryView itinerary={partialItinerary} />,
);
}
} finally {
isGenerating.done(false);
itineraryCompoent.done();
itineraryComponent.done();
}
});

return {
isGenerating: isGenerating.value,
itineraryComponent: itineraryCompoent.value,
itineraryComponent: itineraryComponent.value,
};
}

Expand Down

0 comments on commit f6f227d

Please sign in to comment.