form action questions regarding expected behavior of examples #46
Replies: 5 comments 6 replies
-
Hi @aaronksaunders , do you have a repo or a stackblitz with a reproduction ? Regarding the formaction attribute, its behaviour will mirror the native html behaviour. In your example you do not need it as you only have one action. Regarding the README this is working as intended.
This returns a payload that contains Regarding example, you can find them in playgrounds. The advanced playground should cover all usages of this module. |
Beta Was this translation helpful? Give feedback.
-
I agree with you about working examples are preferred , I think it is just
early in the process and things are moving fast and there appears to be a
lot of assumptions made about what knowledge people are coming to the table
with, just my opinion.
It looks like everything is piled in the playground, I never have used
playground I am more comfortable with multiple specific examples that build
on concepts… everyone learns differently 🙂
I was evaluating it for use in upcoming project and trying to write a blog
post / video and post on my YouTube channel.
I think I just read the basics and tried to jump to something a bit more
complex.
I had to stop work on it, I spent about 6 hours on Sunday and 4 hours
today. I believe I figured out nested routes and loaders… but form action
still are not working for or I don’t understand the concept how it is
implemented here. I am coming from the perspective of understanding how
they work in Remix and applying that to how I look at the examples and
documentation provided
…On Mon, Aug 28, 2023 at 7:20 PM Heb ***@***.***> wrote:
Loaders will work anywhere because you are explicitly calling them with
their names.
For me it's the opposite, I'd rather have working examples...
That being said, this type of discussion is helpful to improve the docs,
so thank you for taking the time!
Is there anything else that isn't clear or isn't working for you atm ? Did
you encounter any errors?
—
Reply to this email directly, view it on GitHub
<#46 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEAFGN6DX2V4EEWFI55K73XXURSBANCNFSM6AAAAAA4BUK7YY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
@aaronksaunders
Stackblitz issueI haven't tried running this module in stackblitz, but it's worth investigating and opening an issue. Copy buttonNoted, I will be creating a dedicated website for the docs to make it easier to copy and paste commands. Package managerI think it might be worth adding a link to each package manager respective documentation for the Add logic for logging-in and registering users.How can this be made clearer ? This is not meant to be copy pasted, it is meant to help you understand that this is a regular file and you can do whatever you want inside. Name of the actionformaction attribute: This is standard html behaviour and it will override the url of your form submission. DependenciesWhat can't you use because of the dependencies ? WarningThere's the eventHandler conversion warning that unfortunately we can't get rid of easily. #53 Error handlerWe could improve the error message here as it's a little cryptic. It means that you are trying to call an action that doesn't have an handler (your 2 registered handlers are default and _register, login isn't registered) Playground dependenciesThat is intended, if you want the same as the playground, you must use the same package.json AND lockfile. Nuxt versionThis is fine, the documentation says that the last version I personally tested the module with was 3.6.5. In most cases, it should be fine to use a more recent version as there shouldn't be any breaking change. |
Beta Was this translation helpful? Give feedback.
-
You want people to try this out, but there is no simple working example anywhere? If you are not going to provide a simple way to try the module out why should anyone use it? Finally, you request a sample project to reproduce an issue but don't provide a baseline for people to start from. This is not a negative criticism, it is just an observation and feedback |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The example assumes that all files are in the root directory... is there a working example where all files are not in the root directory?
Specifically, if the files are not in the root directory, what does the
formaction
value look like?add-player?default
my form action
When I copy the code directly from the documentation and click the register button, I don't get redirected back to my page, I just get the output from the action
When I click the login button, I get this in the log
I am really trying to see how to integrate this into a Nuxt app for potential use in a client project, yet I am struggling with just getting the basics going so hopefully these are just me not understanding the documentation.
Beta Was this translation helpful? Give feedback.
All reactions