Proposal: a modern & typed way of writing Redux actions doing API requests (#30270)
This commit is contained in:
		
					parent
					
						
							
								3a862439df
							
						
					
				
			
			
				commit
				
					
						10ec421dd4
					
				
			
		
					 14 changed files with 281 additions and 125 deletions
				
			
		|  | @ -96,9 +96,9 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({ | |||
| 
 | ||||
|   onModalReblog (status, privacy) { | ||||
|     if (status.get('reblogged')) { | ||||
|       dispatch(unreblog(status)); | ||||
|       dispatch(unreblog(status.id)); | ||||
|     } else { | ||||
|       dispatch(reblog(status, privacy)); | ||||
|       dispatch(reblog(status.id, privacy)); | ||||
|     } | ||||
|   }, | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue