Coder Social home page Coder Social logo

Comments (10)

bdlukaa avatar bdlukaa commented on September 23, 2024 1

https://github.com/supabase/supabase-dart/blob/main/lib/src/supabase_realtime_payload.dart#L35-L38

from supabase-dart.

offline-first avatar offline-first commented on September 23, 2024

Here is a fix:

final primaryKeys = (json['columns'] as List)
        .where((e) => (e['flags'] as List?)?.contains('key') == true)
        .map((e) => e['name'] as String)
        .toList();

from supabase-dart.

bdlukaa avatar bdlukaa commented on September 23, 2024

@dshukertjr what do you think?

from supabase-dart.

offline-first avatar offline-first commented on September 23, 2024

The error is not in supabase-flutter but in supabase-dart...

from supabase-dart.

dshukertjr avatar dshukertjr commented on September 23, 2024

Sorry for the late reply!

@offline-first Yup, your fix looks amazing! Would you like to open a PR this repo?

from supabase-dart.

dshukertjr avatar dshukertjr commented on September 23, 2024

@offline-first BTW, I wonder why e['flags'] was null in your case. Would you be able to share the scheme of your messages table?

from supabase-dart.

offline-first avatar offline-first commented on September 23, 2024

@dshukertjr PR is on the way

create table public.messages (
  id            bigint generated by default as identity primary key,
  inserted_at   timestamp with time zone default timezone('utc'::text, now()) not null,
  message       text,
  user_id       uuid references public.users not null,
  channel_id    bigint references public.channels on delete cascade not null
);
comment on table public.messages is 'Individual messages sent by each user.';

from supabase-dart.

offline-first avatar offline-first commented on September 23, 2024

@dshukertjr
#65

from supabase-dart.

w3b6x9 avatar w3b6x9 commented on September 23, 2024

@offline-first BTW, I wonder why e['flags'] was null in your case. Would you be able to share the scheme of your messages table?

@dshukertjr Realtime Security (WALRUS) no longer sends flags but the old Realtime still does. I think #65 will help to maintain backwards compatibility.

from supabase-dart.

burggraf avatar burggraf commented on September 23, 2024

I'm watching this.

from supabase-dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.