Created
October 5, 2020 01:03
-
-
Save daffl/5a6a25b8be61f33eaf2ab6af33f54682 to your computer and use it in GitHub Desktop.
Initializing feathers-batch on the client
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
// If your module loader supports the `browser` package.json field | |
import { batchClient } from 'feathers-batch'; | |
// Alternatively | |
import { batchClient } from 'feathers-batch/client'; | |
const client = feathers(); | |
// configure Feathers client here | |
// `batchClient` should be configured *after* | |
// any other application level hooks | |
client.configure(batchClient({ | |
batchService: 'batch' | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment