@parca/store
Advanced tools
Comparing version 0.13.2 to 0.13.3
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.13.3](https://github.com/parca-dev/parca/compare/ui-v0.13.2...ui-v0.13.3) (2022-06-07) | ||
**Note:** Version bump only for package @parca/store | ||
## [0.13.2](https://github.com/parca-dev/parca/compare/ui-v0.13.1...ui-v0.13.2) (2022-05-31) | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "@parca/store", | ||
"version": "0.13.2", | ||
"version": "0.13.3", | ||
"description": "State management for Parca UI", | ||
@@ -21,3 +21,3 @@ "main": "src/index.tsx", | ||
}, | ||
"gitHead": "24de586086052c41f79a905f0d0e86c9831ae45f" | ||
"gitHead": "f5e7eadd0ffae7a9de6bdd7a57534d26f072c1d3" | ||
} |
@@ -7,2 +7,3 @@ import {createSlice, PayloadAction} from '@reduxjs/toolkit'; | ||
compare: boolean; | ||
searchNodeString: string | undefined; | ||
} | ||
@@ -13,2 +14,3 @@ | ||
compare: false, | ||
searchNodeString: undefined, | ||
}; | ||
@@ -24,10 +26,14 @@ | ||
}, | ||
setSearchNodeString: (state, action: PayloadAction<string>) => { | ||
state.searchNodeString = action.payload; | ||
}, | ||
}, | ||
}); | ||
export const {setCompare} = profileSlice.actions; | ||
export const {setCompare, setSearchNodeString} = profileSlice.actions; | ||
// Other code such as selectors can use the imported `RootState` type | ||
export const selectCompareMode = (state: RootState) => state.profile.compare; | ||
export const selectSearchNodeString = (state: RootState) => state.profile.searchNodeString; | ||
export default profileSlice.reducer; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17243
124