You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a component that manages the add and edit form for customer data.
From the URL I get the id and load the data in the form. If there is no data it should display a message and changes the state to add mode. The problem is sometimes I get back undefined and right after I get the data, so I can't distinguish if the data will arrive very soon or if the record is deleted.
Many thanks in advance.
Lukas
Api
let CustomersApi;
if (Meteor.isClient) {
CustomersApi = new Ground.Collection('customers');
} else {
CustomersApi = new Mongo.Collection('customers');
}
export default CustomersApi;
Hello everyone,
I am working on a component that manages the add and edit form for customer data.
From the URL I get the id and load the data in the form. If there is no data it should display a message and changes the state to add mode. The problem is sometimes I get back undefined and right after I get the data, so I can't distinguish if the data will arrive very soon or if the record is deleted.
Many thanks in advance.
Lukas
Api
Pass data to component
Proccess received data
The text was updated successfully, but these errors were encountered: