Warning #1: ViewModelStore not found
Full Text:
Unable to get access to view model by id or class name without using ViewModelStore
Last active view model will be returned.
Explanation:
This happened because vmLookup passed in hook useViewModel as first argument is not works because ViewModelStore not provided by <ViewModelsProvider>.
tsx
const model = useViewModel(YourVM);
// where YourVM - is vmLookupThis code tries to find YourVM in ViewModelStore, but ViewModelStore is not provided.
Potential solution
To fix this warning message - use <ViewModelsProvider> to provide ViewModelStore:
tsx
export const App = () => {
return <ViewModelsProvider value={vmStore}>...</ViewModelsProvider>;
};