Type alias RecoilFeatureOptions

RecoilFeatureOptions: {
    React: Partial<{
        createElement: unknown;
    }>;
    prepare(initialState): Promise<any>;
}

options for recoil feature

Type declaration

  • React: Partial<{
        createElement: unknown;
    }>

    The React module.

    This is needed for the recoil feature to wrap subapp's component inside the recoil Provider component.

  • prepare:function
    • prepare recoil initial state

      Parameters

      • initialState: any

        when SSR sent initialState used, it will be passed. The client prepare can just return {initialState} as is.

      Returns Promise<any>

      Promise<{initialState: any}>