Skip to content

Conversation

@stellarhoof
Copy link
Member

@stellarhoof stellarhoof commented Sep 24, 2025

We'd like to reset results pagination after results come back, not before.

Additionally, we should also run onUpdateByOthers when a field affects both self and others.

@stellarhoof stellarhoof self-assigned this Sep 24, 2025
@changeset-bot
Copy link

changeset-bot bot commented Sep 24, 2025

🦋 Changeset detected

Latest commit: a264b8a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
contexture-client Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@stellarhoof stellarhoof force-pushed the feature/call-onUpdateByOthers-after-results branch from 70192eb to 4ed991d Compare September 24, 2025 16:02
@stellarhoof stellarhoof force-pushed the feature/call-onUpdateByOthers-after-results branch from 4ed991d to a264b8a Compare September 24, 2025 16:02
@stellarhoof stellarhoof merged commit bd71b4c into main Sep 24, 2025
2 of 3 checks passed
@stellarhoof stellarhoof deleted the feature/call-onUpdateByOthers-after-results branch September 24, 2025 16:03
@daedalus28
Copy link
Collaborator

daedalus28 commented Sep 24, 2025

Whatever the intention was here, onUpdateByOthers exists specifically to handle updates caused by other nodes (and not itself). If I recall, the pivot type for example uses this hook to reset expansions (which you would not want to happen on self updates).

I'm not surprised this was rolled back. I think what you might be looking for is the already existing onResult lifecycle hook. Depending on your goal, you could also use onChange or watchNode. There's also afterSearch - tons of existing options.

@stellarhoof
Copy link
Member Author

@daedalus28 Hey Sam! There was one fix and one feature mixed in the changes:

  • We have a need to run code after the search but only when the node was updated by others.
  • We also needed a fix to run onUpdateByOthers when the reactor is all

We reverted both changes and after talking with product we do need the fix, so I'm opening a PR for it.

Thanks for the insight. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants