@parca/profile 0.19.108 → 0.19.110
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/CHANGELOG.md +8 -0
- package/dist/ProfileSelector/index.d.ts.map +1 -1
- package/dist/ProfileSelector/index.js +9 -1
- package/dist/ProfileSelector/useAutoQuerySelector.js +1 -1
- package/dist/ProfileView/components/ProfileFilters/filterPresets.d.ts.map +1 -1
- package/dist/ProfileView/components/ProfileFilters/filterPresets.js +6 -0
- package/dist/ProfileView/components/ProfileFilters/useProfileFilters.d.ts +2 -0
- package/dist/ProfileView/components/ProfileFilters/useProfileFilters.d.ts.map +1 -1
- package/dist/ProfileView/components/ProfileFilters/useProfileFilters.js +3 -1
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.d.ts +1 -0
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.d.ts.map +1 -1
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.js +17 -3
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.test.d.ts +2 -0
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.test.d.ts.map +1 -0
- package/dist/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.test.js +541 -0
- package/dist/QueryControls/index.d.ts.map +1 -1
- package/dist/QueryControls/index.js +1 -3
- package/dist/hooks/useLabels.d.ts.map +1 -1
- package/dist/hooks/useLabels.js +0 -7
- package/dist/hooks/useQueryState.d.ts +4 -0
- package/dist/hooks/useQueryState.d.ts.map +1 -1
- package/dist/hooks/useQueryState.js +29 -5
- package/dist/hooks/useQueryState.test.js +72 -8
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
- package/src/ProfileSelector/index.tsx +14 -1
- package/src/ProfileSelector/useAutoQuerySelector.ts +1 -1
- package/src/ProfileView/components/ProfileFilters/filterPresets.ts +6 -0
- package/src/ProfileView/components/ProfileFilters/useProfileFilters.ts +5 -1
- package/src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.test.tsx +663 -0
- package/src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.ts +24 -3
- package/src/QueryControls/index.tsx +1 -3
- package/src/hooks/useLabels.ts +0 -10
- package/src/hooks/useQueryState.test.tsx +90 -11
- package/src/hooks/useQueryState.ts +36 -4
- package/src/index.tsx +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.19.110 (2026-01-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.19.109](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.108...@parca/profile@0.19.109) (2026-01-07)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## [0.19.108](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.107...@parca/profile@0.19.108) (2026-01-05)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileSelector/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAoD,MAAM,OAAO,CAAC;AAElG,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAsB,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAY5F,OAAO,EAAyB,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ProfileSelector/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAoD,MAAM,OAAO,CAAC;AAElG,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAsB,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAY5F,OAAO,EAAyB,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAgB/E,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,uBAAuB;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,UAAU,oBAAqB,SAAQ,uBAAuB;IAC5D,WAAW,EAAE,kBAAkB,CAAC;IAChC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gCAAgC,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,GAC1B,QAAQ,kBAAkB,EAC1B,QAAQ,MAAM,EACd,MAAM,MAAM,KACX,mBAsBF,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,kMAYtB,oBAAoB,KAAG,GAAG,CAAC,OA8O7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -18,6 +18,7 @@ import { Query } from '@parca/parser';
|
|
|
18
18
|
import { TEST_IDS, testId } from '@parca/test-utils';
|
|
19
19
|
import { millisToProtoTimestamp } from '@parca/utilities';
|
|
20
20
|
import { useMetricsGraphDimensions } from '../MetricsGraph/useMetricsGraphDimensions';
|
|
21
|
+
import { useProfileFilters, } from '../ProfileView/components/ProfileFilters/useProfileFilters';
|
|
21
22
|
import { QueryControls } from '../QueryControls';
|
|
22
23
|
import { LabelsQueryProvider, useLabelsQueryProvider } from '../contexts/LabelsQueryProvider';
|
|
23
24
|
import { UnifiedLabelsProvider } from '../contexts/UnifiedLabelsContext';
|
|
@@ -51,8 +52,15 @@ const ProfileSelector = ({ queryClient, closeProfile, enforcedProfileName, compa
|
|
|
51
52
|
const { viewComponent } = useParcaContext();
|
|
52
53
|
const [queryBrowserMode, setQueryBrowserMode] = useURLState('query_browser_mode');
|
|
53
54
|
const batchUpdates = useURLStateBatch();
|
|
55
|
+
const profileFilterDefaults = viewComponent?.profileFilterDefaults;
|
|
56
|
+
const { forceApplyFilters } = useProfileFilters();
|
|
57
|
+
const handleProfileTypeChange = useCallback(() => {
|
|
58
|
+
if (profileFilterDefaults != null && profileFilterDefaults.length > 0) {
|
|
59
|
+
forceApplyFilters(profileFilterDefaults);
|
|
60
|
+
}
|
|
61
|
+
}, [forceApplyFilters, profileFilterDefaults]);
|
|
54
62
|
// Use the new useQueryState hook - reads directly from URL params
|
|
55
|
-
const { querySelection, draftSelection, setDraftExpression, setDraftTimeRange, setDraftSumBy, setDraftProfileName, setDraftMatchers, commitDraft, profileSelection, setProfileSelection, sumByLoading, draftParsedQuery, } = useQueryState({ suffix });
|
|
63
|
+
const { querySelection, draftSelection, setDraftExpression, setDraftTimeRange, setDraftSumBy, setDraftProfileName, setDraftMatchers, commitDraft, profileSelection, setProfileSelection, sumByLoading, draftParsedQuery, } = useQueryState({ suffix, onProfileTypeChange: handleProfileTypeChange });
|
|
56
64
|
// Use draft state for local state instead of committed state
|
|
57
65
|
const [timeRangeSelection, setTimeRangeSelection] = useState(DateTimeRange.fromRangeKey(draftSelection.timeSelection, draftSelection.from, draftSelection.to));
|
|
58
66
|
const [queryExpressionString, setQueryExpressionString] = useState(draftSelection.expression);
|
|
@@ -95,7 +95,7 @@ export const useAutoQuerySelector = ({ selectedProfileName, profileTypesData, se
|
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
dispatch(setAutoQuery('true'));
|
|
98
|
-
let profileType = profileTypesData.types.find(type => type.name === 'parca_agent' && type.delta);
|
|
98
|
+
let profileType = profileTypesData.types.find(type => type.name === 'parca_agent' && type.sampleType === 'samples' && type.delta);
|
|
99
99
|
if (profileType == null) {
|
|
100
100
|
profileType = profileTypesData.types.find(type => type.name === 'otel_profiling_agent_on_cpu' && type.delta);
|
|
101
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filterPresets.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/filterPresets.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"filterPresets.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/filterPresets.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,EA0OvC,CAAC;AAIF,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,OAEzC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,YAAY,GAAG,SAE3D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,cAAc,MAAM,KAAG,YAAY,EAO3E,CAAC"}
|
|
@@ -20,5 +20,7 @@ export declare const useProfileFilters: () => {
|
|
|
20
20
|
removeFilter: (id: string) => void;
|
|
21
21
|
updateFilter: (id: string, updates: Partial<ProfileFilter>) => void;
|
|
22
22
|
resetFilters: () => void;
|
|
23
|
+
setAppliedFilters: (filters: ProfileFilter[]) => void;
|
|
24
|
+
forceApplyFilters: (filters: ProfileFilter[]) => void;
|
|
23
25
|
};
|
|
24
26
|
//# sourceMappingURL=useProfileFilters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProfileFilters.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFilters.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,MAAM,EAA6C,MAAM,eAAe,CAAC;AAMtF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;IAC5F,SAAS,CAAC,EACN,OAAO,GACP,WAAW,GACX,UAAU,GACV,cAAc,GACd,aAAa,GACb,iBAAiB,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AA2BD,eAAO,MAAM,uBAAuB,GAAI,cAAc,MAAM,EAAE,KAAG,aAAa,EA+E7E,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,gBAAgB,aAAa,EAAE,KAAG,MAAM,EAmF7E,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO;IACnC,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IACpE,YAAY,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"useProfileFilters.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFilters.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,KAAK,MAAM,EAA6C,MAAM,eAAe,CAAC;AAMtF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;IAC5F,SAAS,CAAC,EACN,OAAO,GACP,WAAW,GACX,UAAU,GACV,cAAc,GACd,aAAa,GACb,iBAAiB,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AA2BD,eAAO,MAAM,uBAAuB,GAAI,cAAc,MAAM,EAAE,KAAG,aAAa,EA+E7E,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,gBAAgB,aAAa,EAAE,KAAG,MAAM,EAmF7E,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO;IACnC,YAAY,EAAE,aAAa,EAAE,CAAC;IAC9B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IACpE,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,iBAAiB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACtD,iBAAiB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;CA6LvD,CAAC"}
|
|
@@ -188,7 +188,7 @@ export const convertToProtoFilters = (profileFilters) => {
|
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
190
|
export const useProfileFilters = () => {
|
|
191
|
-
const { appliedFilters, setAppliedFilters } = useProfileFiltersUrlState();
|
|
191
|
+
const { appliedFilters, setAppliedFilters, forceApplyFilters } = useProfileFiltersUrlState();
|
|
192
192
|
const resetFlameGraphState = useResetFlameGraphState();
|
|
193
193
|
const [localFilters, setLocalFilters] = useState(appliedFilters ?? []);
|
|
194
194
|
const lastAppliedFiltersRef = useRef([]);
|
|
@@ -328,5 +328,7 @@ export const useProfileFilters = () => {
|
|
|
328
328
|
removeFilter,
|
|
329
329
|
updateFilter,
|
|
330
330
|
resetFilters,
|
|
331
|
+
setAppliedFilters,
|
|
332
|
+
forceApplyFilters,
|
|
331
333
|
};
|
|
332
334
|
};
|
|
@@ -4,5 +4,6 @@ export declare const decodeProfileFilters: (encoded: string) => ProfileFilter[];
|
|
|
4
4
|
export declare const useProfileFiltersUrlState: () => {
|
|
5
5
|
appliedFilters: ProfileFilter[];
|
|
6
6
|
setAppliedFilters: ParamValueSetterCustom<ProfileFilter[]>;
|
|
7
|
+
forceApplyFilters: (filters: ProfileFilter[]) => void;
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=useProfileFiltersUrlState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProfileFiltersUrlState.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.ts"],"names":[],"mappings":"AAeA,OAAO,
|
|
1
|
+
{"version":3,"file":"useProfileFiltersUrlState.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.ts"],"names":[],"mappings":"AAeA,OAAO,EAAsC,KAAK,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAInG,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAsEvD,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,aAAa,EAgDnE,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAO;IAC3C,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,iBAAiB,EAAE,sBAAsB,CAAC,aAAa,EAAE,CAAC,CAAC;IAC3D,iBAAiB,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;CA4CvD,CAAC"}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
|
-
import { useMemo } from 'react';
|
|
14
|
-
import { useURLStateCustom } from '@parca/components';
|
|
13
|
+
import { useCallback, useMemo } from 'react';
|
|
14
|
+
import { useURLStateBatch, useURLStateCustom } from '@parca/components';
|
|
15
15
|
import { safeDecode } from '@parca/utilities';
|
|
16
16
|
import { isPresetKey } from './filterPresets';
|
|
17
17
|
// Compact encoding mappings
|
|
@@ -114,8 +114,9 @@ export const decodeProfileFilters = (encoded) => {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
export const useProfileFiltersUrlState = () => {
|
|
117
|
+
const batchUpdates = useURLStateBatch();
|
|
117
118
|
// Store applied filters in URL state for persistence using compact encoding
|
|
118
|
-
const [appliedFilters, setAppliedFilters] = useURLStateCustom(
|
|
119
|
+
const [appliedFilters, setAppliedFilters] = useURLStateCustom(`profile_filters`, {
|
|
119
120
|
parse: value => {
|
|
120
121
|
return decodeProfileFilters(value);
|
|
121
122
|
},
|
|
@@ -127,8 +128,21 @@ export const useProfileFiltersUrlState = () => {
|
|
|
127
128
|
const memoizedAppliedFilters = useMemo(() => {
|
|
128
129
|
return appliedFilters ?? [];
|
|
129
130
|
}, [appliedFilters]);
|
|
131
|
+
// Force apply filters (bypasses preserve-existing strategy)
|
|
132
|
+
const forceApplyFilters = useCallback((filters) => {
|
|
133
|
+
const validFilters = filters.filter(f => {
|
|
134
|
+
if (f.type != null && isPresetKey(f.type)) {
|
|
135
|
+
return f.value !== '' && f.type != null;
|
|
136
|
+
}
|
|
137
|
+
return f.value !== '' && f.type != null && f.field != null && f.matchType != null;
|
|
138
|
+
});
|
|
139
|
+
batchUpdates(() => {
|
|
140
|
+
setAppliedFilters(validFilters);
|
|
141
|
+
});
|
|
142
|
+
}, [batchUpdates, setAppliedFilters]);
|
|
130
143
|
return {
|
|
131
144
|
appliedFilters: memoizedAppliedFilters,
|
|
132
145
|
setAppliedFilters,
|
|
146
|
+
forceApplyFilters,
|
|
133
147
|
};
|
|
134
148
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProfileFiltersUrlState.test.d.ts","sourceRoot":"","sources":["../../../../src/ProfileView/components/ProfileFilters/useProfileFiltersUrlState.test.tsx"],"names":[],"mappings":""}
|