File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
api-reference/30 Data Layer/CustomStore/LoadOptions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ An object for storing additional settings that should be sent to the server.
1818 load: function (loadOptions) {
1919 let value = loadOptions.userData?.someValue;
2020 if(!value) {
21- value = 5;
21+ loadOptions.userData?.someValue = 5;
2222 alert("Initial value is set");
2323 }
2424 else {
@@ -48,7 +48,7 @@ An object for storing additional settings that should be sent to the server.
4848 load: (loadOptions) => {
4949 let value = loadOptions.userData?.someValue;
5050 if(!value) {
51- value = 5;
51+ loadOptions.userData?.someValue = 5;
5252 alert("Initial value is set");
5353 }
5454 else {
@@ -75,7 +75,7 @@ An object for storing additional settings that should be sent to the server.
7575 load: (loadOptions) => {
7676 let value = loadOptions.userData?.someValue;
7777 if(!value) {
78- value = 5;
78+ loadOptions.userData?.someValue = 5;
7979 alert("Initial value is set");
8080 }
8181 else {
@@ -107,7 +107,7 @@ An object for storing additional settings that should be sent to the server.
107107 load: (loadOptions) => {
108108 let value = loadOptions.userData?.someValue;
109109 if(!value) {
110- value = 5;
110+ loadOptions.userData?.someValue = 5;
111111 alert("Initial value is set");
112112 }
113113 else {
You can’t perform that action at this time.
0 commit comments