render_async v2.1.0 Release Notes

Release Date: 2019-05-06 // over 2 years ago
  • ๐Ÿฑ Two new features come with 2.1.0 version! ๐ŸŒฎ

    Retry on failure

    render_async can now retry on request failure for number of times you specify

    \<%= render\_async users\_path, retry\_count: 5, error\_message: "Users fetch has failed" %\>

    Closed #46

    Polling feature

    ๐Ÿ“Š You can now poll your paths and URLs by passing interval option to render_async

    \<%= render\_async comments\_path, interval: 5000 %\>

    This will fetch comments_path every 5 seconds. Closed #67 with this feature.

    POSSIBLE BREAKING CHANGE if you use this feature

    Container element is NOT being replaced like in other cases. This means that you will have to deal with render_async container element. There are ways of doing this by passing in an HTML element name and HTML element class.