Skip to content

Instantly share code, notes, and snippets.

{
"on": "RECEIVED_OUTCOME_SAVED",
"actions": [
{
"type": "REQUESTED_NAVIGATE_TO_PLAYLIST_STEP",
"nextPlaylistStepId": "send_alert"
}
],
"condition": {
"is": true,
@piojablonski
piojablonski / machine.js
Last active April 9, 2020 12:04
Generated by XState Viz: https://xstate.js.org/viz
const pingMachine = Machine({
id: 'ping',
type: 'parallel',
states: {
// Intertingly, commenting state1 one makes it work.
state1: {},
state2: {
entry: send({ type: 'log'}),
after: [
@piojablonski
piojablonski / machine.js
Last active April 3, 2020 13:10
Public Presentation Machine
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@piojablonski
piojablonski / machine.js
Last active April 3, 2020 12:59
Form Machine
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@piojablonski
piojablonski / SketchSystems.spec
Created April 2, 2020 13:53
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
@piojablonski
piojablonski / machine.js
Last active April 3, 2020 09:28
Generated by XState Viz: https://xstate.js.org/viz
const childMachine = Machine({
entry: () => { console.log('entry') },
// this is not trigerred
exit: () => { console.log('exit') },
initial: 'a',
states: {
a: {
We couldn’t find that file to show.
@piojablonski
piojablonski / machine.js
Last active March 26, 2020 10:26
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
diff --git a/src/app/api/graphql/network.ts b/src/app/api/graphql/network.ts
index 0a91f951..b1bb9203 100644
--- a/src/app/api/graphql/network.ts
+++ b/src/app/api/graphql/network.ts
@@ -8,7 +8,7 @@ import ApolloClient, {
MutationOptions
} from 'apollo-client'
import { MiddlewareRequest } from 'apollo-client/transport/middleware'
-import { DocumentNode } from 'graphql'
+import { DocumentNode, ExecutionResult } from 'graphql'