A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
dont request db data before loading
ammarahm-ed86b978f9f9df
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.jsindex f079f84a9..b1d924486 100644--- a/apps/mobile/src/components/Menu/TagsSection.js+++ b/apps/mobile/src/components/Menu/TagsSection.js@@ -24,11 +24,13 @@ import Paragraph from '../Typography/Paragraph';export const TagsSection = () => {const [state, dispatch] = useTracked();- const {colors, menuPins} = state;+ const {colors, menuPins, loading} = state;useEffect(() => {- dispatch({type: Actions.MENU_PINS});- }, []);+ if (!loading) {+ dispatch({type: Actions.MENU_PINS});+ }+ }, [loading]);const onPress = (item) => {let params;@@ -222,5 +224,3 @@ const PinItem = ({item, index, onPress}) => {</>);};--