Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default connect(QueuePage, {
- subscriptions: {
- queue: ({ match }) => ({
- endpoint: `queues/${match.params.id}`
- }),
- visitors: ({ match }) => ({
- endpoint: `visitors`,
- options: {
- queries: {
- orderByChild: 'queueId',
- equalTo: match.params.id
- },
- asArray: true
- }
- })
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement