No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Rendering duplicate data in a notification list whenever notification button taped in VUE JS (Quasar framework)

    Help
    3
    5
    135
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hamzaali4942 last edited by

      <q-list
      bordered
      style=“background: white”
      v-for="(item, id) in notifications"
      :key=“id”>

      export default{
      computed:
      {
      notifications: {
      get() {
      return this.$store.state.notification.notifications;
      },
      set(value) {
      this.$store.commit(“notification/setValue”, {
      key: “notifications”,
      value: value
      });
      }
      }
      },
      async created() {
      let that = this;
      var notification_snap1 = await
      this.$db.collection(“notifications”).where(“receiver”,"==",this.$q.localStorage.getItem(“user_id”))
      .orderBy(“time”, “desc”).get();
      notification_snap1.docs.forEach(doc => {
      that.notifications.push({ …doc.data(), id: doc.id });
      });
      }
      }

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Um, what?

        Scott

        H 1 Reply Last reply Reply Quote 0
        • H
          hamzaali4942 @s.molinari last edited by

          @s-molinari can you help me ?

          Y 1 Reply Last reply Reply Quote 0
          • Y
            yo @hamzaali4942 last edited by

            @hamzaali4942 maybe you could developp and use code tag, it is unreadable. I don’t think anybody won’t make efforts if neither you…

            1 Reply Last reply Reply Quote 0
            • s.molinari
              s.molinari last edited by

              @hamzaali4942 - No. Because your question isn’t one and thus, I have no idea what the issue is or what to answer.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post