Download spectrum/shared/db/constants.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/db/constants.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/db/constants.js
-
curl -L -o constants.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/db/constants.js
550 Bytes
| // @flow | |
| export const READ_RUN_ERROR = `Do not call .run() on the query passed to createReadQuery! | |
| Bad: db.table('users').get(userId).run() | |
| Good: db.table('users').get(userId) | |
| If you need to post-process the query data (.run().then()), use the \`process\` hook. | |
| `; | |
| export const WRITE_RUN_ERROR = `Don't forget to call .run() on the query passed to createWriteQuery! | |
| Bad: db.table('users').get(userId) | |
| Good: db.table('users').get(userId).run() | |
| If you need to post-process the result, simply use .then()! \`.run().then(result => /* ... */)!\` | |
| `; | |