render_async v2.1.0 Release NotesRelease Date: 2019-05-06 // over 2 years ago
🍱 Two new features come with 2.1.0 version! 🌮
Retry on failure
render_asynccan now retry on request failure for number of times you specify
\<%= render\_async users\_path, retry\_count: 5, error\_message: "Users fetch has failed" %\>
📊 You can now poll your paths and URLs by passing
\<%= 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.