On WeChat Mini Programs's business code caching

Mini Program is currently under development, and there are many data interfaces. How to do business data caching is more reasonable.
for example:

  json json 
     ~
Mar.20,2021

this depends on the specific business requirements. Things that change infrequently can be cached locally, such as user agreements and other text classes.


or use vue to build the framework of Mini Program, Meituan mpvue , so you can use vuex one-way data flow. If you only use Mini Program native to write, it is very painful. You can build a common data flow, instantiate a Class object, and achieve data sharing through prototype.

Menu