Closed nikolalsvk closed 5 years ago
Closes https://github.com/renderedtext/render_async/issues/67
It loads the desired path immediately, and then after specified number of milliseconds passed in as interval to render_async.
interval
You can use interval like this:
<%= render_async comments_path, interval: 1000 %>
It will fetch comments_path every 1 second. Note that the initial render_async container won't be replaced when using interval.
Reason for NOT replacing initial container is that render_async needs to have an ID of the container to render the request response.
Closes https://github.com/renderedtext/render_async/issues/67
It loads the desired path immediately, and then after specified number of milliseconds passed in as
interval
to render_async.You can use interval like this:
It will fetch comments_path every 1 second. Note that the initial render_async container won't be replaced when using interval.
Reason for NOT replacing initial container is that render_async needs to have an ID of the container to render the request response.