Skip to content

Add option to prevent "updates" on unmodified updates. #17

@kiwicopple

Description

@kiwicopple
Member

Possible implementation:

const mySubscription = supabase
  .from('countries')
  .on('UPDATE', payload => {  })
  .subscribe({ ignoreDuplicates: true })

Object comparisons in JS aren't very "performant" (if there is such a word), so we will want to make the ignoreDuplicates = false by default.

Context:

image

Activity

kiwicopple

kiwicopple commented on Aug 10, 2020

@kiwicopple
MemberAuthor

Note that we only need this in the supabase-js level, I don't think it needs to be in realtime-js

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @w3b6x9@kiwicopple@soedirgo

      Issue actions

        Add option to prevent "updates" on unmodified updates. · Issue #17 · supabase/supabase-js