Why isn't fetchPartials exposed for ajax requests? #2487
-
Hello, I've experimenting with different technologies and very much like the minimalistic and yet powerful setup of Deno+ Fresh. Big thanks to everyone involved in building this. Great job! So my question is: Why isn't fetchPartials exposed for ajax requests? Context: Looking at the network requests for the client-side navigation I noticed that the requests are coming from the Am I thinking wrongly about this? Did anyone else wander how to just make a, say, POST request that instantly updates the DOM (like magic). Is there a reason for not exposing it? It can be restricted to only allow fetching same-origin and known routes (as per manifest). WDYT, looking forward to reading your thoughts :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Main reason we haven't exposed it yet is that we wanted to wait a little until the inner internal APIs settle, so that we are confident in making apps rely on it. So far it hasn't changed much, so that's a good sign that we're moving in the right direction. I'm hoping to go through the partials-related bugs in the issue tracker and kinda see where we end up with and if it stays the same. If it does, then it would feel like a good time to expose it. |
Beta Was this translation helpful? Give feedback.
Main reason we haven't exposed it yet is that we wanted to wait a little until the inner internal APIs settle, so that we are confident in making apps rely on it. So far it hasn't changed much, so that's a good sign that we're moving in the right direction. I'm hoping to go through the partials-related bugs in the issue tracker and kinda see where we end up with and if it stays the same. If it does, then it would feel like a good time to expose it.