question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"strategy=always" does not trigger brand new request

See original GitHub issue

How could I trigger brand new request every time I use service.find? strategy=always does not work, and listStrategy=always does not work either. There is still no http request in my browser console. So what’s the difference between strategy and listStrategy? (I see them both in README.md). Which one fulfill my purpose? Following is my code:

// feathers.service.ts
this.app = feathers()
  .configure(reactive({
    idField: '_id',
    listStrategy: 'always',
    strategy: 'always'
  }))
  .configure(rest(HOST).angularHttpClient(httpClient, {HttpHeaders}))
  .configure(hooks())
  .configure(authentication({path: '/login', storage: window.localStorage}))   
// role.component.ts
getRoles() {
  const Role = this.feathersService.app.service('roles')
  const log = console.log
  Role
    .watch({listStrategy: 'always', strategy: 'always'})
    .find()
    .subscribe(log,log)
}

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
j2L4ecommented, Aug 6, 2018

To disable caching on your local version change return cacheObservable(this._cache, 'find', params ,pipeStream); to return pipeStream;

I think we’d need to figure out the API for a user provided cache, most likely some kind of object with cache, get and invalidate methods

0reactions
dafflcommented, Sep 19, 2018

Please create a new issue with an example to reproduce.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node passport-local strategy always fails - Stack Overflow
I was overlooking two things: There was no call to the passport.initialize() middleware; I wasn't parsing request bodies because Express ...
Read more >
PR Release not triggered - SAP Community
Hi All I just configured a new release strategy by copying an existing one into the existing class. The pre-existing characteristics are maintained...
Read more >
How Can a Strategy Everyone Knows About Still Work?
Some assert that once a strategy is “discovered” it can't work anymore. Others, often implicitly, assume the future will look as wonderful ...
Read more >
Guide To Using Trigger Emails Successfully - Epsilon
Your brand may be missing opportunities to use trigger emails. ... While your emails may not always be moving people toward making a ......
Read more >
Re: Workflow not triggering as expected - Page 2 - ServiceNow
However this time I built everything out from our Hardware Request table. ... requested new functionality for having an sms message sent if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found