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
{{ message }}
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.
Since this is middleware, why not just override res.render? I could see how this might be problematic, but it would make it so the rest of the site could handle pjax more seamlessly.
Perhaps I'll play with this on a fork, but I'm curious to folks' take.
The text was updated successfully, but these errors were encountered:
That's a good point, the only problem I see here is, that you have no more possibility to render something without pjax. Adding a method like renderLegacy sounds a little strange doesn't it?
Yeah it does sound strange. Doesn't this pjax middleware just fall back to the original method when the pjax header doesn't exist? I suppose a case where the pjax header exits but you don't want to render a partial...
Since this is middleware, why not just override
res.render
? I could see how this might be problematic, but it would make it so the rest of the site could handle pjax more seamlessly.Perhaps I'll play with this on a fork, but I'm curious to folks' take.
The text was updated successfully, but these errors were encountered: