Fix to react-key uniqueness in feeds (#1136)
This commit is contained in:
		
							parent
							
								
									872a7f93f4
								
							
						
					
					
						commit
						3c29a1be4d
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -17,6 +17,12 @@ export class FeedViewPostsSlice { | |||
| 
 | ||||
|   constructor(public items: FeedViewPost[] = []) {} | ||||
| 
 | ||||
|   get _reactKey() { | ||||
|     return `slice-${this.rootItem.post.uri}-${ | ||||
|       this.rootItem.reason?.indexedAt || this.rootItem.post.indexedAt | ||||
|     }` | ||||
|   } | ||||
| 
 | ||||
|   get uri() { | ||||
|     if (this.isFlattenedReply) { | ||||
|       return this.items[1].post.uri | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue