This repository was archived by the owner on Aug 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ const _sessionStore = new WebStore(window.sessionStorage);
9999 * Data can be in memory, localStorage or sessionStorage.
100100 * The data will be kept with the id as key.
101101 */
102- export default class Storage extends React . Component {
102+ export default class Store extends React . Component {
103103 constructor ( props ) {
104104 super ( props ) ;
105105
@@ -187,13 +187,13 @@ export default class Storage extends React.Component {
187187 }
188188}
189189
190- Storage . defaultProps = {
190+ Store . defaultProps = {
191191 storage_type : 'memory' ,
192192 clear_data : false ,
193193 modified_timestamp : - 1
194194} ;
195195
196- Storage . propTypes = {
196+ Store . propTypes = {
197197 /**
198198 * The key of the storage.
199199 */
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import DatePickerRange from './components/DatePickerRange.react';
1919import Upload from './components/Upload.react' ;
2020import Tabs from './components/Tabs.react' ;
2121import Tab from './components/Tab.react' ;
22- import Storage from './components/Storage .react' ;
22+ import Store from './components/Store .react' ;
2323
2424export {
2525 Checklist ,
@@ -42,5 +42,5 @@ export {
4242 DatePickerSingle ,
4343 DatePickerRange ,
4444 Upload ,
45- Storage
45+ Store
4646} ;
Original file line number Diff line number Diff line change @@ -1153,19 +1153,19 @@ def test_storage_component(self):
11531153 dummy_data = 'Hello dummy'
11541154
11551155 app .layout = html .Div ([
1156- dcc .Storage (id = 'storage' ,
1156+ dcc .Store (id = 'storage' ,
11571157 storage_type = 'local' ),
11581158 html .Button ('click me' , id = 'btn' ),
11591159 html .Button ('clear' , id = 'clear-btn' ),
11601160 html .Button ('set-init-storage' ,
11611161 id = 'set-init-storage' ),
1162- dcc .Storage (id = 'dummy' ,
1162+ dcc .Store (id = 'dummy' ,
11631163 storage_type = 'session' ,
11641164 data = dummy_data ),
1165- dcc .Storage (id = 'memory' ,
1165+ dcc .Store (id = 'memory' ,
11661166 storage_type = 'memory' ),
11671167 html .Div (id = 'memory-output' ),
1168- dcc .Storage (id = 'initial-storage' ,
1168+ dcc .Store (id = 'initial-storage' ,
11691169 storage_type = 'session' ),
11701170 html .Div (id = 'init-output' )
11711171 ])
You can’t perform that action at this time.
0 commit comments