fix: stabilize streaming footer and status layout (#882)

This commit is contained in:
Charles Packer
2026-02-09 19:49:44 -08:00
committed by GitHub
parent fe8a4042d2
commit baa28ede88
5 changed files with 476 additions and 213 deletions

View File

@@ -10,7 +10,7 @@
* if animations should be disabled, then provides this via context.
*/
import { createContext, type ReactNode, useContext } from "react";
import { createContext, type ReactNode, useContext, useMemo } from "react";
interface AnimationContextValue {
/**
@@ -46,8 +46,10 @@ export function AnimationProvider({
children,
shouldAnimate,
}: AnimationProviderProps) {
const contextValue = useMemo(() => ({ shouldAnimate }), [shouldAnimate]);
return (
<AnimationContext.Provider value={{ shouldAnimate }}>
<AnimationContext.Provider value={contextValue}>
{children}
</AnimationContext.Provider>
);