prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

flickering when dragging firestore list #939

Open jaddoescad opened 4 years ago

jaddoescad commented 4 years ago

Hi, I'm running into a problem and I'm trying to figure out if there's a possible solution using your library. I have attached a gif below to illustrate my problem. It seems like there is a delay in updating the store. I have turned off my internet connection to test while offline, and the flickering still occurs.

I'm not sure what's causing the delay, When I hook up the table to a regular store there is no flickering.

after modifying the data I am saving it like this

const firestore = useFirestore();
firestore
      .collection("coursesCreated")
      .doc(props.location.state.id)
      .set(updatedData)
      .then(function () {
        console.log("Document successfully updated!");
      })
      .catch(function (error) {
        // The document probably doesn't exist.
        console.error("Error updating document: ", error);
      });

any hints would be greatly appreciated!

ezgif com-video-to-gif