houdini-react 0.0.0-20240309024236 → 0.0.0-20240309040252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/plugin-cjs/index.js +10 -10
- package/build/plugin-esm/index.js +10 -10
- package/package.json +2 -2
|
@@ -77817,8 +77817,8 @@ function defaultComponentField({
|
|
|
77817
77817
|
var cache_default = new Cache();
|
|
77818
77818
|
var serverSide = typeof globalThis.window === "undefined";
|
|
77819
77819
|
var documentPlugin = (kind, source) => {
|
|
77820
|
-
return () => {
|
|
77821
|
-
const sourceHandlers = source();
|
|
77820
|
+
return (cacheRef) => () => {
|
|
77821
|
+
const sourceHandlers = source(cacheRef ?? cache_default);
|
|
77822
77822
|
const enterWrapper = (handler) => {
|
|
77823
77823
|
return !handler ? void 0 : (ctx, handlers) => {
|
|
77824
77824
|
if (ctx.artifact.kind !== kind) {
|
|
@@ -77845,7 +77845,7 @@ var documentPlugin = (kind, source) => {
|
|
|
77845
77845
|
};
|
|
77846
77846
|
};
|
|
77847
77847
|
};
|
|
77848
|
-
var query = documentPlugin(ArtifactKind.Query, function() {
|
|
77848
|
+
var query = documentPlugin(ArtifactKind.Query, function(cache) {
|
|
77849
77849
|
let subscriptionSpec = null;
|
|
77850
77850
|
let lastVariables = null;
|
|
77851
77851
|
return {
|
|
@@ -77873,7 +77873,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
77873
77873
|
end(ctx, { resolve: resolve2, marshalVariables: marshalVariables2, variablesChanged: variablesChanged2 }) {
|
|
77874
77874
|
if (variablesChanged2(ctx) && !ctx.cacheParams?.disableSubscriptions) {
|
|
77875
77875
|
if (subscriptionSpec) {
|
|
77876
|
-
|
|
77876
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
77877
77877
|
}
|
|
77878
77878
|
lastVariables = { ...marshalVariables2(ctx) };
|
|
77879
77879
|
const variables = lastVariables;
|
|
@@ -77893,19 +77893,19 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
77893
77893
|
});
|
|
77894
77894
|
}
|
|
77895
77895
|
};
|
|
77896
|
-
|
|
77896
|
+
cache.subscribe(subscriptionSpec, lastVariables);
|
|
77897
77897
|
}
|
|
77898
77898
|
resolve2(ctx);
|
|
77899
77899
|
},
|
|
77900
77900
|
cleanup() {
|
|
77901
77901
|
if (subscriptionSpec) {
|
|
77902
|
-
|
|
77902
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.());
|
|
77903
77903
|
lastVariables = null;
|
|
77904
77904
|
}
|
|
77905
77905
|
}
|
|
77906
77906
|
};
|
|
77907
77907
|
});
|
|
77908
|
-
var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
77908
|
+
var fragment = documentPlugin(ArtifactKind.Fragment, function(cache) {
|
|
77909
77909
|
let subscriptionSpec = null;
|
|
77910
77910
|
let lastReference = null;
|
|
77911
77911
|
return {
|
|
@@ -77919,7 +77919,7 @@ var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
|
77919
77919
|
};
|
|
77920
77920
|
if (!ctx.cacheParams?.disableSubscriptions && (!deepEquals(lastReference, currentReference) || variablesChanged2(ctx))) {
|
|
77921
77921
|
if (subscriptionSpec) {
|
|
77922
|
-
|
|
77922
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
77923
77923
|
}
|
|
77924
77924
|
const variables = marshalVariables2(ctx);
|
|
77925
77925
|
subscriptionSpec = {
|
|
@@ -77939,14 +77939,14 @@ var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
|
77939
77939
|
});
|
|
77940
77940
|
}
|
|
77941
77941
|
};
|
|
77942
|
-
|
|
77942
|
+
cache.subscribe(subscriptionSpec, variables);
|
|
77943
77943
|
lastReference = currentReference;
|
|
77944
77944
|
}
|
|
77945
77945
|
next(ctx);
|
|
77946
77946
|
},
|
|
77947
77947
|
cleanup() {
|
|
77948
77948
|
if (subscriptionSpec) {
|
|
77949
|
-
|
|
77949
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.());
|
|
77950
77950
|
}
|
|
77951
77951
|
}
|
|
77952
77952
|
};
|
|
@@ -77807,8 +77807,8 @@ function defaultComponentField({
|
|
|
77807
77807
|
var cache_default = new Cache();
|
|
77808
77808
|
var serverSide = typeof globalThis.window === "undefined";
|
|
77809
77809
|
var documentPlugin = (kind, source) => {
|
|
77810
|
-
return () => {
|
|
77811
|
-
const sourceHandlers = source();
|
|
77810
|
+
return (cacheRef) => () => {
|
|
77811
|
+
const sourceHandlers = source(cacheRef ?? cache_default);
|
|
77812
77812
|
const enterWrapper = (handler) => {
|
|
77813
77813
|
return !handler ? void 0 : (ctx, handlers) => {
|
|
77814
77814
|
if (ctx.artifact.kind !== kind) {
|
|
@@ -77835,7 +77835,7 @@ var documentPlugin = (kind, source) => {
|
|
|
77835
77835
|
};
|
|
77836
77836
|
};
|
|
77837
77837
|
};
|
|
77838
|
-
var query = documentPlugin(ArtifactKind.Query, function() {
|
|
77838
|
+
var query = documentPlugin(ArtifactKind.Query, function(cache) {
|
|
77839
77839
|
let subscriptionSpec = null;
|
|
77840
77840
|
let lastVariables = null;
|
|
77841
77841
|
return {
|
|
@@ -77863,7 +77863,7 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
77863
77863
|
end(ctx, { resolve: resolve2, marshalVariables: marshalVariables2, variablesChanged: variablesChanged2 }) {
|
|
77864
77864
|
if (variablesChanged2(ctx) && !ctx.cacheParams?.disableSubscriptions) {
|
|
77865
77865
|
if (subscriptionSpec) {
|
|
77866
|
-
|
|
77866
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
77867
77867
|
}
|
|
77868
77868
|
lastVariables = { ...marshalVariables2(ctx) };
|
|
77869
77869
|
const variables = lastVariables;
|
|
@@ -77883,19 +77883,19 @@ var query = documentPlugin(ArtifactKind.Query, function() {
|
|
|
77883
77883
|
});
|
|
77884
77884
|
}
|
|
77885
77885
|
};
|
|
77886
|
-
|
|
77886
|
+
cache.subscribe(subscriptionSpec, lastVariables);
|
|
77887
77887
|
}
|
|
77888
77888
|
resolve2(ctx);
|
|
77889
77889
|
},
|
|
77890
77890
|
cleanup() {
|
|
77891
77891
|
if (subscriptionSpec) {
|
|
77892
|
-
|
|
77892
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.());
|
|
77893
77893
|
lastVariables = null;
|
|
77894
77894
|
}
|
|
77895
77895
|
}
|
|
77896
77896
|
};
|
|
77897
77897
|
});
|
|
77898
|
-
var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
77898
|
+
var fragment = documentPlugin(ArtifactKind.Fragment, function(cache) {
|
|
77899
77899
|
let subscriptionSpec = null;
|
|
77900
77900
|
let lastReference = null;
|
|
77901
77901
|
return {
|
|
@@ -77909,7 +77909,7 @@ var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
|
77909
77909
|
};
|
|
77910
77910
|
if (!ctx.cacheParams?.disableSubscriptions && (!deepEquals(lastReference, currentReference) || variablesChanged2(ctx))) {
|
|
77911
77911
|
if (subscriptionSpec) {
|
|
77912
|
-
|
|
77912
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
|
|
77913
77913
|
}
|
|
77914
77914
|
const variables = marshalVariables2(ctx);
|
|
77915
77915
|
subscriptionSpec = {
|
|
@@ -77929,14 +77929,14 @@ var fragment = documentPlugin(ArtifactKind.Fragment, function() {
|
|
|
77929
77929
|
});
|
|
77930
77930
|
}
|
|
77931
77931
|
};
|
|
77932
|
-
|
|
77932
|
+
cache.subscribe(subscriptionSpec, variables);
|
|
77933
77933
|
lastReference = currentReference;
|
|
77934
77934
|
}
|
|
77935
77935
|
next(ctx);
|
|
77936
77936
|
},
|
|
77937
77937
|
cleanup() {
|
|
77938
77938
|
if (subscriptionSpec) {
|
|
77939
|
-
|
|
77939
|
+
cache.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.());
|
|
77940
77940
|
}
|
|
77941
77941
|
}
|
|
77942
77942
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20240309040252",
|
|
4
4
|
"description": "The React plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"recast": "^0.23.1",
|
|
44
44
|
"rollup": "^3.7.4",
|
|
45
45
|
"use-deep-compare-effect": "^1.8.1",
|
|
46
|
-
"houdini": "^0.0.0-
|
|
46
|
+
"houdini": "^0.0.0-20240309040252"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"build"
|