errorHandler
Type:
This function accepts a JavaScript Error object as the parameter.
App.js
- // ...
- import LocalStore from 'devextreme/data/local_store';
- const store = new LocalStore({
- // ...
- errorHandler: (error) => {
- console.log(error.message);
- }
- });
- class App extends React.Component {
- // ...
- }
- export default App;
flushInterval
Specifies a delay in milliseconds between when data changes and the moment these changes are saved in the local storage. Applies only if immediate is false.
Type:
Default Value: 10000
key
In the following example, the ProductID
and ProductCode
properties are specified as key properties:
App.js
- // ...
- import LocalStore from 'devextreme/data/local_store';
- const store = new LocalStore({
- // ...
- key: ['ProductID', 'ProductCode']
- });
- class App extends React.Component {
- // ...
- }
- export default App;
name
Specifies the name under which data should be saved in the local storage. The dx-data-localStore-
prefix will be added to the name.
Type:
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.