Loading...
Loading...
Compare original and translation side by side
apps/web/src/pagesapps/web/src/pagespageNamefeatures.hasStorefeatures.useExistingStorefeatures.existingStorePathfeatures.uiComplexitydescriptionstore-best-practicepageNamefeatures.hasStorefeatures.useExistingStorefeatures.existingStorePathfeatures.uiComplexitydescriptionstore-best-practiceschema.tsschema.tsjudgeHasStoreFromDescription()judgeUseExistingStoreFromDescription()inferExistingStorePath()judgeHasStoreSupervised()judgeUseExistingStoreSupervised()store-best-practicejudgeHasStoreFromDescription()judgeUseExistingStoreFromDescription()inferExistingStorePath()judgeHasStoreSupervised()judgeUseExistingStoreSupervised()store-best-practicejudgeUIComplexity()judgeUIComplexitySupervised()ANATOMY.mdhasStoreuseExistingStoreindex.ts[PageName].tsx[PageName]Content.tsx_store/index.ts_store/provider.tsx_store/[camelCase]Slice.ts_store/[camelCase]Store.tshasStore=trueuseExistingStore=falsestore-best-practiceANATOMY.mdhasStoreuseExistingStoreindex.ts[PageName].tsx[PageName]Content.tsx_store/index.ts_store/provider.tsx_store/[camelCase]Slice.ts_store/[camelCase]Store.tshasStore=trueuseExistingStore=falsestore-best-practice{{PageName}}{{camelCasePageName}}hasStore=trueuseExistingStore=falsestore-best-practicehasStore=trueuseExistingStore=trueexistingStorePath_store/uiComplexityhasStore=true{{StoreImport}}useExistingStore=falseimport { useStore } from "zustand"; import { use{{PageName}}Store } from "./_store";useExistingStore=trueimport { useStore } from "zustand"; import { use{{PageName}}Store, {{PageName}}StoreProvider } from "{{existingStorePath}}";hasStore=true{{StoreConnection}}const { loading, searchQuery, selectedSort, viewMode } = use{{PageName}}Store();cn<StoreProvider>useExistingStore=false{{PageName}}StoreProvideruseExistingStore=true{{PageName}}StoreProvider{{PageName}}{{camelCasePageName}}hasStore=trueuseExistingStore=falsestore-best-practicehasStore=trueuseExistingStore=trueexistingStorePath_store/uiComplexityhasStore=true{{StoreImport}}useExistingStore=falseimport { useStore } from "zustand"; import { use{{PageName}}Store } from "./_store";useExistingStore=trueimport { useStore } from "zustand"; import { use{{PageName}}Store, {{PageName}}StoreProvider } from "{{existingStorePath}}";hasStore=true{{StoreConnection}}const { loading, searchQuery, selectedSort, viewMode } = use{{PageName}}Store();cn<StoreProvider>useExistingStore=false{{PageName}}StoreProvideruseExistingStore=true{{PageName}}StoreProviderrouteTreerouter.tsxrouteTreerouter.tsx