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
openapi: 3.0.0 | |
info: | |
title: Alpaca Broker API | |
description: "Open brokerage accounts, enable commission-free trading, and manage the ongoing user experience with Alpaca Broker API" | |
version: 1.0.0 | |
servers: | |
- url: "https://broker-api.alpaca.markets/v1" | |
description: Production endpoint | |
components: | |
securitySchemes: |
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 { canUseDOM } from 'exenv'; | |
import { readState } from 'history/lib/DOMStateStorage' | |
import requestAnimationFrame from 'dom-helpers/util/requestAnimationFrame' | |
import useStandardScroll from './useStandardScroll'; | |
export default function useScroll(createHistory) { | |
const positionByPath = {}; | |
const getState = (location) => { |