什么是更好的解决方案,使更小的商店或更小的商店。 ? 例如我有设置,有两个页面 - graphSettings和productSettings我为他们写了一两个商店吗? 什么是更有效的解决方案..例如,我在第一家商店的本地数据看起来 - http://pastebin.com/GYEJ9fhT ..它有很多行,它只适用于graphSettings ...使用productSettings它会更大。那么使用一两个?? 非常感谢。
What is better solution, make more smaller stores or less bigger. ? For example i have settings, and there are two pages - graphSettings, and productSettings Have i write for them one or two stores? what is more effective solution.. For exemple my local data in first store looks - http://pastebin.com/GYEJ9fhT .. its a lot of rows, and its just for graphSettings... with productSettings it will be even larger.. So have use one or two ?? Thanks a lot.
最满意答案
将你所在的地方分开是一种很好的做法,它将来会对你有所帮助。 组件/文件越小越简单,开发,测试和调试就越容易。
It's always a good practice to separate where you can, it'll benefit you in the future. The smaller and simpler your components/files are, the easier they'll be to develop, test and debug.
更多推荐
发布评论