How to use the @appbaseio/reactivemaps.AppbaseChannelManager.update function in @appbaseio/reactivemaps

To help you get started, we’ve selected a few @appbaseio/reactivemaps 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 / app / actuators / ResultCard.js View on Github external
componentWillReceiveProps(nextProps) {
		if (!_.isEqual(this.props, nextProps)) {
			this.setReact(nextProps);
			let size = null,
				from = null;
			if (this.props.size !== nextProps.size || this.props.from != nextProps.from) {
				size = nextProps.size;
				from = nextProps.from;
			}
			manager.update(this.channelId, this.react, size, from, nextProps.stream);
		}
		if (nextProps.pagination !== this.pagination) {
			this.pagination = nextProps.pagination;
			this.setState({
				requestOnScroll: !nextProps.pagination
			});
		}
	}
github appbaseio / reactivesearch / app / sensors / NestedMultiList.js View on Github external
componentWillReceiveProps(nextProps) {
		if (!_.isEqual(this.props.defaultSelected, nextProps.defaultSelected)) {
			this.changeValue(nextProps.defaultSelected);
		}
		if (!_.isEqual(this.props.react, nextProps.react)) {
			this.setReact(nextProps);
			manager.update(this.channelId, this.react, nextProps.size, 0, false);
		}
	}
github appbaseio / reactivesearch / app / sensors / CategorySearch.js View on Github external
componentWillReceiveProps(nextProps) {
		if (!_.isEqual(this.props.react, nextProps.react)) {
			this.setReact(nextProps);
			manager.update(this.channelId, this.react, nextProps.size, 0, false);
		}

		if (this.props.highlight !== nextProps.highlight) {
			this.setQueryInfo(nextProps);
			this.handleSearch({
				value: this.state.currentValue.label
			});
		}
	}
github appbaseio / reactivesearch / app / actuators / ResultList.js View on Github external
componentWillReceiveProps(nextProps) {
		if (!_.isEqual(this.props, nextProps)) {
			this.setReact(nextProps);
			let size = null,
				from = null;
			if (this.props.size !== nextProps.size || this.props.from != nextProps.from) {
				size = nextProps.size;
				from = nextProps.from;
			}
			manager.update(this.channelId, this.react, size, from, nextProps.stream);
		}
		if (nextProps.pagination !== this.pagination) {
			this.pagination = nextProps.pagination;
			this.setState({
				requestOnScroll: !nextProps.pagination
			});
		}
	}
github appbaseio / reactivesearch / app / sensors / DynamicRangeSlider.js View on Github external
componentWillReceiveProps(nextProps) {
		if (!_.isEqual(this.props.react, nextProps.react)) {
			this.setReact(nextProps);
			manager.update(this.channelId, this.react, nextProps.size, 0, false);
		}
		this.updateValues(nextProps.defaultSelected);
	}
github appbaseio / reactivesearch / app / sensors / TagCloud.js View on Github external
componentWillReceiveProps(nextProps) {
		if (!_.isEqual(this.props.react, nextProps.react) || this.props.size !== nextProps.size) {
			this.setReact(nextProps);
			manager.update(this.channelId, this.react, nextProps.size, 0, false);
		}
		if (this.props.multiSelect !== nextProps.multiSelect) {
			this.type = nextProps.multiSelect ? "terms" : "term";
		}
		if (this.props.showFilter !== nextProps.showFilter || this.props.filterLabel !== nextProps.filterLabel) {
			this.setQueryInfo(nextProps);
			this.changeValue(this.defaultSelected, true);
		}
		if (this.props.defaultSelected !== nextProps.defaultSelected) {
			this.checkDefault(nextProps);
		}
	}
github appbaseio / reactivesearch / app / sensors / NestedList.js View on Github external
componentWillReceiveProps(nextProps) {
		if (!_.isEqual(this.props.defaultSelected, nextProps.defaultSelected)) {
			this.changeValue(nextProps.defaultSelected);
		}
		if (!_.isEqual(this.props.react, nextProps.react)) {
			this.setReact(nextProps);
			manager.update(this.channelId, this.react, nextProps.size, 0, false);
		}
	}