👋
- Wrocław
Pinned Loading
-
Parallel data fetching
Parallel data fetching 1/* Parallel fetch
2* Case: When you need to fetch data from server and
3* those request does not need data from previous one (they are independent).
4* Pros: Significantly reduces time to get whole response.
5*/
-
Brace balancing
Brace balancing 1const OPEN_BRACES = ['[', '{', '('] as const;
2type OpenBrace = typeof OPEN_BRACES[number]
34const CLOSED_BRACES = [']', '}', ')'] as const;
5type ClosedBrace = typeof CLOSED_BRACES[number];
-
If you need to specify that some typ...
If you need to specify that some type is a key of some object where value is of type string you may use such construct. 1interface Props<T extends Record<K, string>, K extends keyof T> {
2data: T[];
3row: ComponentType<T>;
4primaryKey: K;
5}
-
piotrwitek/typesafe-actions
piotrwitek/typesafe-actions PublicTypesafe utilities for "action-creators" in Redux / Flux Architecture
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.