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.

Merge doesn't work?

See original GitHub issue

Hi I tried the merge option on all levels (application, service and method), but it is never triggered.

.configure(rx(RxJS, {
        merge : function(current, data) {
            console.log(current, data);
        }
    }))
const userService = app.service('users').rx({ merge : function(current, data) {
    console.log(current, data);
}})
userService
    .find({
        merge : function(current, data) {
            console.log(current, data);
        }
}).subscribe(users => dispatch(receive_users(users.data))

Am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dafflcommented, Aug 6, 2016

Sorry, this took a while but I decided to remove the merge option in the latest version 0.3.0. By default Feathers dispatches the events in a way that the data can just be replaced so I don’t think it is really necessary. If it is for some reason we can circle back and add an option to customize the event and method streams.

1reaction
ryukencommented, Jul 4, 2016

I know that it only works on update, patch, remove and created. But if you subscribe on find you will also get updates from those actions. When I subscribe on find and execute a patch I will get only the patched data (which will replace the whole array which I don’t want) Or am I using this incorrectly?

Read more comments on GitHub >

github_iconTop Results From Across the Web

git merge does not merge - Stack Overflow
I have a master and "PersonalSite" branch for a codebase I'm working on. I have been repeatedly ...
Read more >
Pandas Merge DataFrames Explained Examples
pandas support pandas.merge() and DataFrame.merge() to merge DataFrames which is exactly similar to SQL join and supports different types of join inner,
Read more >
Merge, join, concatenate and compare - Pandas
Merge, join, concatenate and compare#. pandas provides various facilities for easily combining together Series or DataFrame with various kinds of set logic ...
Read more >
How To Merge Pandas DataFrames | Towards Data Science
Usually, we may have to merge together pandas DataFrames in order to build a new DataFrame containing columns and rows from the involved...
Read more >
Pandas merge() - Merging Two DataFrame Objects
Pandas DataFrame merge() function is used to merge two DataFrame objects with a database-style join operation. The joining is performed on ...
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