This file contains 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains 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, { useState, useEffect } from 'react'; | |
export default (url, options) => { | |
const [{ data, error, loading }, updateState] = useState({ data: null, error: null, loading: true }); | |
/** runs only once as a Promise can be settled once */ | |
useEffect(() => { | |
const fetchData = async () => { | |
try { | |
const req = new Request(url, options); |
This file has been truncated, but you can view the full file.
This file contains 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
[{"pid":82897,"tid":1299,"ts":483991101142,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"../../third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc","src_func":"PushOntoImmediateIncomingQueueLocked"},"dur":84,"tdur":80,"tts":284969}, | |
{"pid":82897,"tid":1299,"ts":483991101185,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":19,"tdur":16,"tts":285011}, | |
{"pid":82897,"tid":1299,"ts":483991101212,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":8,"tdur":6,"tts":285037}, | |
{"pid":82897,"tid":18179,"ts":483991599669,"ph":"X","cat":"toplevel","name":"MessagePumpLibevent::OnLibeventNotification","args":{"fd":7},"dur":143,"tdur":138,"tts":9103}, | |
{"pid":82897,"tid":18179,"ts":483991599757,"ph":"X","cat":"ipc,toplevel","name":"ChannelMojo::OnMessag |