diff --git a/src/lib/getServerState.ts b/src/lib/getServerState.ts index 62197b4..822dcd5 100644 --- a/src/lib/getServerState.ts +++ b/src/lib/getServerState.ts @@ -9,6 +9,11 @@ export const getServerContext = () => // eslint-disable-next-line @typescript-eslint/no-explicit-any export function getServerState(component: any, serverUrl: URL): Promise> { + return getServerStateWithProps(component, serverUrl, {}); +} + +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export function getServerStateWithProps(component: any, serverUrl: URL, props: any): Promise> { return new Promise((resolve) => { const notifyServer = async (search: InstantSearch) => { await waitForResults(search); @@ -16,6 +21,7 @@ export function getServerState(component: any, serverUrl: URL): Promise