10 examples of 'react native reset cache' in JavaScript

Every line of 'react native reset cache' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
22reset() {
23 this.commandLogs = [];
24 this.root = new NativeElement('root', 1, {});
25 this.nativeElementMap = new Map();
26 this._lastTagUsed = 1;
27 this.nativeElementMap.set(1, this.root);
28 this._platform = 'android';
29}
234cacheReset() {
235 return this.lruCache.reset();
236}
15componentDidMount() {
16 this.cacheSub = this.props.client
17 .subscribe({
18 query: CACHE_INVALID_SUB,
19 variables: {
20 client: this.props.clientId,
21 },
22 })
23 .subscribe({
24 next: ({loading}) => {
25 if (!loading) {
26 // Reset all of the sounds that are currently playing
27 this.props.removeAllSounds();
28 if (
29 excludedStations.indexOf(this.props.station.name) > -1 ||
30 (this.props.station.cards &&
31 this.props.station.cards.find(
32 c => excludedStations.indexOf(c.component) > -1,
33 ))
34 )
35 return;
36 this.props.playSound({url: "/sciences.ogg"});
37 this.props.reset && this.props.reset();
38 publish("widgetClose");
39 }
40 },
41 error(err) {
42 console.error("Error resetting cache", err);
43 },
44 });
45}
198reset: function CachedValue_reset() {
199 this._value = unassigned_value_sentinel;
200},
5export default function asReset(component: any): any {
6 return getContext({ formId: PropTypes.string, resetForm: PropTypes.func })(
7 component
8 )
9}
131reset() {
132 this.editor.summernote('reset');
133}
97reset() {
98 this.store = new Map();
99}
26BlazeLayout.reset = function reset() {
27 var layout = currentLayout;
28 if(layout) {
29 if(layout._domrange) {
30 // if it's rendered let's remove it right away
31 Blaze.remove(layout);
32 } else {
33 // if not let's remove it when it rendered
34 layout.onViewReady(function() {
35 Blaze.remove(layout);
36 });
37 }
38
39 currentLayout = null;
40 currentLayoutName = null;
41 currentRegions = new ReactiveDict();
42 }
43};
55reset() {
56 this.minIndex = +Infinity;
57 this.maxIndex = -Infinity;
58 this.items.clear();
59 this.averageSizeFloat = this.itemSize;
60 this.averageSize = this.itemSize;
61 this.recalculateAverage.reset();
62}
191public reset() {
192 this.editor.summernote('reset');
193}

Related snippets