WIP #1413
Annotations
5 errors and 2 warnings
job
Property 'isFavorite' does not exist on type 'FavoritesResponse & { updateFavorites: (restaurantId: string) => void; favorite: Favorite | undefined; }'.
|
job
Property 'toggleFavorite' does not exist on type 'FavoritesResponse & { updateFavorites: (restaurantId: string) => void; favorite: Favorite | undefined; }'.
|
job
Property 'isFavorite' does not exist on type 'FavoritesResponse & { updateFavorites: (restaurantId: string) => void; favorite: Favorite | undefined; }'. Did you mean 'favorite'?
|
job
Property 'isFavorite' does not exist on type 'FavoritesResponse & { updateFavorites: (restaurantId: string) => void; favorite: Favorite | undefined; }'. Did you mean 'favorite'?
|
job
Process completed with exit code 1.
|
job:
exercise-src/react-native/16-security/01-problem/src/services/auth/AuthProvider.tsx#L21
The 'signIn' function makes the dependencies of useMemo Hook (at line 46) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'signIn' in its own useCallback() Hook
|
job:
exercise-src/react-native/16-security/01-problem/src/services/auth/AuthProvider.tsx#L23
The 'signOut' function makes the dependencies of useMemo Hook (at line 46) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'signOut' in its own useCallback() Hook
|