Changelog History
Page 2
-
v2.1.1 Changes
August 16, 2019๐ New release (2.1.1) let's you toggle when render_async gets loaded on the page.
By passing in a
toggle
hash, you can trigger render_async by clicking or doing other things to HTML elements.
You can trigger render_async by doing something like this:<a href='#' id='detail-button'>detail</a> <%= render_async comments_path, toggle: { selector: '#detail-button', event: :click } %>
This will trigger render_async to load when the user clicks the "detail" link on the page. render_async won't load until that event is triggered.
๐ DEPRECATION WARNING:
If you've been using
html_options
as a second argument when calling render_async, you will have to change it to using ahtml_options
hash like this:\<%= render\_async users\_path, html\_options: { nonce: 'lWaaV6eYicpt+oyOfcShYINsz0b70iR+Q1mohZqNaag=' } %\>
-
v2.1.0 Changes
May 06, 2019๐ฑ 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 torender_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.
-
v2.0.2 Changes
January 04, 2019Locked bundler dependency was making problems to some users #73
๐ This release removes bundler from gemspec file and solves the issue.
-
v2.0.1 Changes
December 10, 2018๐ง If you're using Turbolinks 5 or higher, you can resolve this by setting Turbolinks configurtion of render_async to true:
RenderAsync.configure do |config| config.turbolinks = true # Enable this option if you are using Turbolinks 5+end
This way, you're not breaking Turbolinks flow of loading or reloading a page.
Also, invalid jQuery Promise method name has been replaced in this version.
-
v2.0.0 Changes
October 06, 2018- #64: Document new features - @nikolalsvk.
- ๐ง #63: Configure gem - @nikolalsvk.
- #62: Handle request errorss - @nikolalsvk.
- #61: Add option to pass in container_class and container_id - @nikolalsvk.
- ๐ #60: Support event creation in IE - @nikolalsvk.
-
v1.3.0 Changes
October 06, 2018- #58: Tune different method requests - @nikolalsvk.
- ๐ง #52: Configurable AJAX method, headers and body - @reneklacan.
- #54: Add recipe for using with respond_to/format.js - @filipewl.
- #50: Add Turbolinks usage note- @richardvenneman.
-
v1.2.0 Changes
January 25, 2018- #49: Pass in html_element_name - @nikolalsvk.
- ๐ #48: Move JS code to a partial - @nikolalsvk.
- #47: Trigger request when document is ready - @nikolalsvk.
- โก๏ธ #36: Update README with instructions for nested async - @SaladFork.
- #41: Only bother when the dom is actually ready to be changed - @krainboltgreene.
- #43: [ci skip] Get more Open Source Helpers - @schneems.
- โ #42: Integration tests - @nikolalsvk.
-
v1.1.3 Changes
November 23, 2017- #40: Replace render_async's container with the response data - @nikolalsvk.
-
v1.1.2 Changes
November 17, 2017 -
v1.1.1 Changes
October 14, 2017- #29: Use jQuery if available - @nikolalsvk.