Keep-alive is an abstract component built into Vue that allows contained components to remain in state, avoiding repeated component creation and rendering
Keep-alive is generally used in combination with routing and dynamic components to cache components.
<keep-alive> <component :is='current'></component> </keep-alive>
Keep-alive provides include and exclude attributes, both of which support strings or regular expressions. Include means that only components with matching names will be cached. Exclude means that any components with matching names will not be cached.
<keep-alive :include="includeList" :exclude="excludeList"> <router-view></router-view> </keep-alive>
Keep-alive caches include matching components and does not cache exclude matching components.
- Higher order components in react
- The element “extra pin The solution of “in normal of part” warning
- When react dynamically prunes components by operating arrays, the state of the remaining components is not preserved. Solution to the problem (method of dynamically setting unique key value)
- Solve the problem of showing unregistered (unknown custom element) when importing components into Ant Design Pro
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- “%Error opening tftp://255.255.255.255/network config”
- Error Kernel Pattern
- Vue error: did you register the component correctly? For.., make sure to provide the “name” option (solved)
- Attempted import error: ‘injectglobal’ is not exported from ‘styled components’
- Android More than one file was found with OS independent path ‘META-INF/LICENSE‘
- Module parse failed:Unexpectedtoken (1:0)You may need an appropriate loader to handle this file type
- Android Error | Failed to find target with hash string ”android-23′ in…
- React bootstrap loading and how to use modules
- catkin_make [Warning]:‘gazebo_LIBRARIES‘ is defined.
- The command Du – h — max depth = 1 in Linux
- OpenGL step pit record
- Several methods of deleting all empty lines in text under Linux
- Some mistakes and solutions in Django
- SAP development and error reporting: 500 SAP internal server error (TE rmination:RABAX_ STATE)