(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import { FetchBaseQueryError } from '@rtk-incubator/rtk-query/dist'; | |
/** | |
* Default tags used by the cacher helpers | |
*/ | |
const defaultTags = ["UNAUTHORIZED", "UNKNOWN_ERROR"] as const; | |
type DefaultTags = typeof defaultTags[number]; | |
function concatErrorCache<T, ID>( | |
existingCache: CacheList<T, ID>, |
// @flow | |
import * as React from 'react'; | |
import {asyncComponent} from 'react-async-component'; | |
export const loaderMaker = (bgColor: string = 'transparent') => () => ( | |
<div style={{position: 'absolute', width: '100%', height: '100%', backgroundColor: bgColor}} /> | |
); | |
const MAX_RETRIES = 3; | |
const STARTING_BACKOFF = 500; |
source 'https://rubygems.org' | |
gem "graphql", github: "rmosolgo/graphql-ruby", branch: "subscriptions" | |
gem "sinatra" | |
gem "thin" |
import { Kind } from 'graphql/language'; | |
import { GraphQLScalarType } from 'graphql'; | |
function serializeDate(value) { | |
if (value instanceof Date) { | |
return value.getTime(); | |
} else if (typeof value === 'number') { | |
return Math.trunc(value); | |
} else if (typeof value === 'string') { | |
return Date.parse(value); |
import React from 'react' | |
import $ from 'jquery' | |
import 'jquery-ui/datepicker' | |
import 'jquery-ui/themes/ui-lightness/jquery-ui.css' | |
var Datepicker = React.createClass({ | |
getDefaultProps() { | |
return { | |
onChange() {} | |
} |
// make a "base" component | |
const FakeButton = (props) => ( | |
<div | |
{...props} | |
style={{ | |
cursor: 'default', | |
border: '1px solid', | |
borderRadius: '3px', | |
...props.style | |
}} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.