You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current refresh() method refreshes all props, which could be quite inefficient if there are many wired up and you only need a subset of them refreshed. Would be useful if it could handle something like refresh('prop1') or refresh(['prop1', 'prop2'])
The text was updated successfully, but these errors were encountered:
Only issue I have there is that it's more surface area we'd have to generate. My inclination is towards keeping things as simple as possible here - just an optional prop name (singular).
I think I like the solution of refresh accepting a comma separated String or Array of String for refreshing given props the most:
this.props.refresh('username'); // Refreshes only the `username` prop.
this.props.refresh([ 'username', 'foo' ]); // Refreshes both the `username` and `foo` props.
this.props.refresh('username,foo'); // Same as above, using comma separated values instead of Array.
this.props.refresh(); // Refreshes all props
The current
refresh()
method refreshes all props, which could be quite inefficient if there are many wired up and you only need a subset of them refreshed. Would be useful if it could handle something likerefresh('prop1')
orrefresh(['prop1', 'prop2'])
The text was updated successfully, but these errors were encountered: