@parca/profile 0.16.354 → 0.16.355
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
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.16.355 (2024-03-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## 0.16.354 (2024-03-10)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
import { useEffect, useState } from 'react';
|
|
14
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
15
15
|
import { Provider } from 'react-redux';
|
|
16
16
|
import { DateTimeRange, KeyDownProvider, useParcaContext } from '@parca/components';
|
|
17
17
|
import { createStore } from '@parca/store';
|
|
@@ -259,7 +259,9 @@ const ProfileExplorerApp = ({ queryClient, queryParams, navigateTo, }) => {
|
|
|
259
259
|
};
|
|
260
260
|
const ProfileExplorer = ({ queryClient, queryParams, navigateTo, }) => {
|
|
261
261
|
const { additionalFlamegraphColorProfiles } = useParcaContext();
|
|
262
|
-
const { store: reduxStore } =
|
|
262
|
+
const { store: reduxStore } = useMemo(() => {
|
|
263
|
+
return createStore(additionalFlamegraphColorProfiles);
|
|
264
|
+
}, [additionalFlamegraphColorProfiles]);
|
|
263
265
|
return (_jsx(Provider, { store: reduxStore, children: _jsx(KeyDownProvider, { children: _jsx(ProfileExplorerApp, { queryClient: queryClient, queryParams: queryParams, navigateTo: navigateTo }) }) }));
|
|
264
266
|
};
|
|
265
267
|
export default ProfileExplorer;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.355",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.106",
|
|
7
|
-
"@parca/components": "^0.16.
|
|
7
|
+
"@parca/components": "^0.16.262",
|
|
8
8
|
"@parca/dynamicsize": "^0.16.61",
|
|
9
9
|
"@parca/hooks": "^0.0.45",
|
|
10
10
|
"@parca/parser": "^0.16.69",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public",
|
|
51
51
|
"registry": "https://registry.npmjs.org/"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7740505690da6887830d45b5240e7a8ebe0f3ecc"
|
|
54
54
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
|
-
import {useEffect, useState} from 'react';
|
|
14
|
+
import {useEffect, useMemo, useState} from 'react';
|
|
15
15
|
|
|
16
16
|
import {Provider} from 'react-redux';
|
|
17
17
|
|
|
@@ -407,7 +407,10 @@ const ProfileExplorer = ({
|
|
|
407
407
|
navigateTo,
|
|
408
408
|
}: ProfileExplorerProps): JSX.Element => {
|
|
409
409
|
const {additionalFlamegraphColorProfiles} = useParcaContext();
|
|
410
|
-
|
|
410
|
+
|
|
411
|
+
const {store: reduxStore} = useMemo(() => {
|
|
412
|
+
return createStore(additionalFlamegraphColorProfiles);
|
|
413
|
+
}, [additionalFlamegraphColorProfiles]);
|
|
411
414
|
|
|
412
415
|
return (
|
|
413
416
|
<Provider store={reduxStore}>
|