diff --git a/govtool/frontend/src/context/usersnapContext.tsx b/govtool/frontend/src/context/usersnapContext.tsx index b8e4a99cd..e877cabfe 100644 --- a/govtool/frontend/src/context/usersnapContext.tsx +++ b/govtool/frontend/src/context/usersnapContext.tsx @@ -1,4 +1,10 @@ -import React, { useEffect, useState, useContext, useCallback } from "react"; +import React, { + useEffect, + useState, + useContext, + useCallback, + useMemo, +} from "react"; import { InitOptions, WidgetApi, loadSpace } from "@usersnap/browser"; import { SpaceEventCallback, @@ -45,8 +51,10 @@ export const UsersnapProvider = ({ }); }, [initParams]); + const value = useMemo(() => ({ openFeedbackWindow }), [openFeedbackWindow]); + return ( - + {children} );