The useSearch() composable in Learn will be abstracted into kolibri-common so that it can be used across plugins. (At this point, Learn and Coach, but possibly also Device in the future!)
The core functionality should be moved into a composable called baseUseSearch that can be used across plugins.
In a future issue, additional requirements for particular uses (i.e. contentNodeProgress and currentDeviceData in Learn) will be handled within those plugins, via dependency injection.
Acceptance Criteria
Moves useSearch into kolibri-common as useBaseSearch()
Moves useLanguages into kolibri-common
Ensure no console errors, and that build works correctly, even though this issue does not include refactoring in Learn
The
useSearch()
composable in Learn will be abstracted intokolibri-common
so that it can be used across plugins. (At this point, Learn and Coach, but possibly also Device in the future!)The core functionality should be moved into a composable called baseUseSearch that can be used across plugins.
In a future issue, additional requirements for particular uses (i.e.
contentNodeProgress
andcurrentDeviceData
in Learn) will be handled within those plugins, via dependency injection.Acceptance Criteria
useSearch
intokolibri-common
asuseBaseSearch()
useLanguages
intokolibri-common