I am experiencing the same issue...
When I use a form to add a new record to a SharePoint Dataset - the record is then shown twice in the Gallery - but interestingly, only when the gallery is showing a Filtered list of records in the datasource - if I remove the filter and have the gallery look at all records in the datasource, there is only one instance of my new record.
I have also double checked the sharepoint list in question (the datasource), and there is definitely only one instance of the newly created record - it is just that the gallery is showing that record twice.
I have also noticed that the duplicate record is only being shown to the User that created the new record - a second user looking at the app only sees one instance of the newly created record. Also, for the user that created the record, closing and reopening the app solves the issue - the duplicate gallery entry is gone.
So if I have ruled out the fact that the datasource contains 2 records, and the duplicate is only showing on the app for the user that created the record, it must be some sort of bug in PowerApps itself....?
Does anyone know why a Gallery would be showing a newly created record twice?
FYI:
Gallery Items formula:
Filter(Datasource, 'Created By'.DisplayName=User().FullName)
Gallery "Default" formula:
Gallery_DefaultSel
Form "Save Button" Forumla:
If( Datasource_Form.Mode = FormMode.New,
SubmitForm(Datasource_Form); Set( selectedRecordID, Datasource_Form.LastSubmit.ID),
// (My form is decoupled from the gallery - I use this global variable to tell the form which record to look at)
SubmitForm(Datasource_Form); UpdateContext({Gallery_DefaultSel: Datasource_Gallery.Selected});
ResetForm(Datasource_Form);
)
James.