Replies: 3 comments
-
As for 2, i'm not sure that async was what i really meant, which is a function that will need to be complete execution before the dom change is starting.. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestions. But I haven't understood everything, yet. For 1, I wonder how did you add your custom headers for a normal navigation like clicking an |
Beta Was this translation helpful? Give feedback.
-
Released in 2.2.0 hooks. Thank you! |
Beta Was this translation helpful? Give feedback.
-
In order for this package to be used in most projects powered by JS frameworks, it would need to be a little more customizable.
Two examples are below:
Providing an option to add custom headers to the requests:
In my project this will be used to provide the XCSRF header required to validate the CSRF token.
Without it the request will be denied .
Providing an option for async callback after the response has been received and before the DOM changes applied:
This will be useful in order to prepare and init whatever required for the new page before it is loaded to DOM.
Without those two, it will be real hard to have a real life usage for this package IMHO.
Beta Was this translation helpful? Give feedback.
All reactions