Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPIKE Inline validation #1148

Closed

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Feb 21, 2024

Issue #329

Do not review or merge this

This is just for an investigation

This is the same branch that was used on #1113

Note #1150 is a more up to date version of this - this PR may still be useful because it contains code for doing a remote submit that there's still a chance we may use

@@ -34,6 +40,14 @@ const SaveAction = (MenuComponent) => (props) => {
{ type: type.title }
);

// https://redux-form.com/8.3.0/examples/remotesubmit/
submitForm();
Copy link
Member Author

@emteknetnz emteknetnz Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a callback below this to show toast notifications, however I don't see us getting this to work because redux-forms 'submit()' function used for triggering a remote submit isn't thenable nor does it allow for adding a callback or have any other method that allows us to do stuff 'onAfterSuccess / onAfterFailure'

Make me inlined to say that remote submit isn't feasible and we need to put the save/submit button actually on the form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant