This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { RecoilState } from 'recoil'; | |
| export interface IStarsPickerProps { | |
| state: RecoilState<number>; | |
| } | |
| export const StarsPicker =({ state }: IStarsPickerProps) => { | |
| const [value, setValue] = useRecoilState(state); | |
| return ( | |
| <ReactStars | |
| name="raring" | |
| value={value} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { useRecoilState } from 'recoil'; | |
| import { stateComment, stateStars } from '../../../states'; | |
| import { StarsPicker } from '../../ui-units'; | |
| export const Details = () => { | |
| const { id, journey } = useRoutingInfo(); // parse query string | |
| const key: IRecoilId = { id, journey }; | |
| // best practice (won't cause rendering of the entire component) | |
| const starState = stateStars(key); | |
| // bad practice (will cause rendering of the entire component) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| helm upgrade NAME_OF_DEPLOYMENT bitnami/redis \ | |
| -i --wait --timeout 600s \ | |
| -n NAMESPACE \ | |
| --set metrics.enabled=true \ | |
| --set metrics.serviceMonitor.enabled=true \ | |
| --set metrics.serviceMonitor.namespace=monitoring \ | |
| --set usePassword={true/false} \ | |
| --set architecture=replication \ | |
| --set auth.enabled={true/false} \ | |
| --set image.repository=redislabs/rejson \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --set image.repository=redislabs/rejson \ | |
| --set image.tag=2.0.6 \ | |
| --set master.extraFlags='{--loadmodule,/usr/lib/redis/modules/redisearch.so,--loadmodule,/usr/lib/redis/modules/rejson.so}' \ | |
| --set replica.extraFlags='{--loadmodule,/usr/lib/redis/modules/redisearch.so,--loadmodule,/usr/lib/redis/modules/rejson.so}' |
OlderNewer