react-admin
react-admin copied to clipboard
UUID () in <TabbedForm> results in endless Warning: performUpdateIfNecessary: Unexpected batch number
In SimpleForm UUID () works great. In TabbedForm it results in endless Warning: . Ending in Uncaught RangeError: Maximum call stack size exceeded.
export const BatchCreate = (props) => (
<Create {...props}>
<TabbedForm>
<FormTab label="resources.batches.tabs.tab1">
<DisabledInput source="id" defaultValue={() => uuidv1()}/>
<TextInput source="batchcode" style={detailStyle} />
</FormTab>
<FormTab label="resources.batches.tabs.tab2">
<ReferenceInput`` label="Spawn" source="spawnid" reference="Spawns" style={{ display: 'inline-block', marginLeft: 5 }} elStyle={{ width: '5em' }} allowEmpty>
<SelectInput optionText ="spawncode" />
</ReferenceInput>
</FormTab>
<FormTab label="resources.batches.tabs.note">
<LongTextInput source="note" />
</FormTab>
</TabbedForm>
</Create>
);
"version": "1.2.2", "uuid": "^3.1.0" "react": "~15.5.4",
This has been fixed in the next branch with #913