Skip to content
qubeejs/angular
API/provideQubeeMemoryAdapter

provideQubeeMemoryAdapter

function@qubeejs/angularsrc/lib/lists/memory-adapter.ts

Provide a memory adapter to every list under an injector

In a component’s providers, the lists of that component and its children share one in-memory state, which is gone with the component:

@Component({
providers: [provideQubeeMemoryAdapter()],
template: `<app-tag-filters /><app-tag-table />`
})
export class TagPickerComponent {}
provideQubeeMemoryAdapter(initialSearch?: SearchParamsInput): Provider[]
Parameter Type Description
initialSearch? SearchParamsInput The query the state starts from.

Returns — The provider for QUBEE_LIST_ADAPTER