How to use the @appbaseio/reactivecore/lib/utils/helper.checkValueChange function in @appbaseio/reactivecore

To help you get started, we’ve selected a few @appbaseio/reactivecore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appbaseio / reactivesearch / packages / web / lib / components / search / DataSearch.js View on Github external
currentValue: value
			});
			if (isDefaultValue) {
				if (_this3.props.autoSuggest) {
					_this3.setState({
						isOpen: false
					});
					_this3.updateQuery(_this3.internalComponent, value);
				}
				_this3.updateQuery(_this3.props.componentId, value);
			} else {
				// debounce for handling text while typing
				_this3.handleTextChange(value);
			}
		};
		checkValueChange(_this3.props.componentId, value, _this3.props.beforeValueChange, _this3.props.onValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / native / src / components / search / DataSearch.js View on Github external
const performUpdate = () => {
			this.setState({
				currentValue: value,
			});
			if (isDefaultValue) {
				if (props.autosuggest) {
					this.updateQuery(this.internalComponent, value, props);
				}
				this.updateQuery(props.componentId, value, props);
			} else {
				// debounce for handling text while typing
				this.handleTextChange(value);
			}
			if (props.onValueChange) props.onValueChange(value);
		};
		checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / native / src / components / basic / TextField.js View on Github external
this.setState(
				{
					currentValue: value,
				},
				() => {
					if (isDefaultValue) {
						this.updateQuery(value, props);
						if (props.onValueChange) props.onValueChange(value);
					} else {
						// debounce for handling text while typing
						this.handleTextChange(value, props);
					}
				},
			);
		};
		checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / web / src / components / basic / NumberBox.js View on Github external
this.updateQuery(value, props);
				if (props.onValueChange) props.onValueChange(value);
			};

			if (hasMounted) {
				this.setState(
					{
						currentValue: value,
					},
					handleUpdates,
				);
			} else {
				handleUpdates();
			}
		};
		checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / web / src / components / range / RatingsFilter.js View on Github external
this.updateQuery(value, props, includeUnrated);
				if (props.onValueChange) props.onValueChange(value);
			};

			if (hasMounted) {
				this.setState(
					{
						currentValue: value,
					},
					handleUpdates,
				);
			} else {
				handleUpdates();
			}
		};
		checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / web / src / components / list / MultiDataList.js View on Github external
if (props.onValueChange) props.onValueChange(finalValues);
			};

			if (hasMounted) {
				this.setState(
					{
						currentValue,
					},
					handleUpdates,
				);
			} else {
				handleUpdates();
			}
		};

		checkValueChange(props.componentId, finalValues, props.beforeValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / maps / src / components / basic / GeoDistanceSlider.js View on Github external
this.getCoordinates(currentValue.value, () => {
						if (this.state.currentDistance) {
							this.updateQuery(this.state.currentDistance);
							if (props.onValueChange) {
								props.onValueChange({
									distance: this.state.currentDistance,
									location: currentValue.value,
								});
							}
						}
					});
				},
			);
		};

		checkValueChange(
			props.componentId,
			{ distance: this.state.currentDistance, location: currentValue.value },
			props.beforeValueChange,
			performUpdate,
		);
	};
github appbaseio / reactivesearch / packages / web / src / components / range / SingleRange.js View on Github external
if (props.onValueChange) props.onValueChange(currentValue);
			};

			if (hasMounted) {
				this.setState(
					{
						currentValue,
					},
					handleUpdates,
				);
			} else {
				handleUpdates();
			}
		};

		checkValueChange(props.componentId, currentValue, props.beforeValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / native / src / components / list / SingleDropdownList.js View on Github external
setValue = (value, props = this.props) => {
		const performUpdate = () => {
			this.setState(
				{
					currentValue: value,
				},
				() => {
					this.updateQuery(value, props);
					if (props.onValueChange) props.onValueChange(value);
				},
			);
		};

		checkValueChange(props.componentId, value, props.beforeValueChange, performUpdate);
	};
github appbaseio / reactivesearch / packages / web / src / components / range / MultiRange.js View on Github external
};

			if (hasMounted) {
				this.setState(
					{
						currentValue,
						selectedValues,
					},
					handleUpdates,
				);
			} else {
				handleUpdates();
			}
		};

		checkValueChange(props.componentId, currentValue, props.beforeValueChange, performUpdate);
	};