Download spectrum/api/loaders/message.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/loaders/message.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/loaders/message.js
-
curl -L -o message.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/loaders/message.js
397 Bytes
| // @flow | |
| import { getManyMessages } from '../models/message'; | |
| import createLoader from './create-loader'; | |
| import type { Loader } from './types'; | |
| export const __createMessageLoader = createLoader((messages: string[]) => | |
| getManyMessages(messages) | |
| ); | |
| export default () => { | |
| throw new Error( | |
| '⚠️ Do not import loaders directly, get them from the GraphQL context instead! ⚠️' | |
| ); | |
| }; | |