feathersjs-ecosystem / feathers-reactive

Reactive API extensions for Feathers services
MIT License
216 stars 37 forks source link

Does this need to be configured on client only or client and server? #147

Closed florianbepunkt closed 5 years ago

florianbepunkt commented 5 years ago

From the docs I'm not sure whether this needs to be configured on the feathers client or on the server as well.

florianbepunkt commented 5 years ago

Basically I have some mongoose based feather services.

On client I have configured

const app = feathers()
  .configure(socketio(socket))
  .configure(
    auth({
      service: "user",
      storage: window.localStorage
    })
  )
  .configure(
    rx({
      idField: "_id"
    })
  );

When I subscribe to a service the initial data is trasmitted. But when I update items, the data param of the subscription response is empty, except when I chance the list strategy to "always" but this does not only return the updated item but all items each time.

florianbepunkt commented 5 years ago

Needs to be configured client side only. Had anothers issues that caused some confusion. Closing this.