| 
									
										
										
										
											2022-10-17 15:26:37 +08:00
										 |  |  | # @ice/plugin-store
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-11 11:02:51 +08:00
										 |  |  | A plugin of state management base on Redux and React Redux used in ice.js`. | 
					
						
							| 
									
										
										
										
											2022-10-17 15:26:37 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Usage
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```ts | 
					
						
							|  |  |  | import { defineConfig } from '@ice/app'; | 
					
						
							|  |  |  | import store from '@ice/plugin-store'; | 
					
						
							| 
									
										
										
										
											2022-11-11 11:02:51 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | export default defineConfig(() => ({ | 
					
						
							| 
									
										
										
										
											2022-10-17 15:26:37 +08:00
										 |  |  |   plugins: [ | 
					
						
							|  |  |  |     store(), | 
					
						
							|  |  |  |   ], | 
					
						
							| 
									
										
										
										
											2022-11-11 11:02:51 +08:00
										 |  |  | })); | 
					
						
							| 
									
										
										
										
											2022-10-17 15:26:37 +08:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Options
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-11 11:02:51 +08:00
										 |  |  | - `disableResetPageState`  | 
					
						
							|  |  |  |   - The default value is `false`. | 
					
						
							|  |  |  |   - After it is turned on, the page state will not be reinitialized after switching the page and entering the original page again. |