---
title: "Discussion on \"Why Emitting State from Repository is an Anti-Pattern\" | Hashnode"
description: "Discussion on \"Why Emitting State from Repository is an Anti-Pattern\". In this post, as the title suggests, I'll discuss why one shouldn't emit View States (or as some people prefer to call it Resource nowadays) from Repository, and why is it Anti-Pattern IMO. While discussing that, this post will also address why retur..."
url: "https://hashnode.com/posts/why-emitting-state-from-repository-is-an-anti-pattern/674029ff11659d5768b4ec51"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Emitting State from Repository is an Anti-Pattern](https://rivuchk.hashnode.dev/why-emitting-state-from-repository-is-an-anti-pattern?utm_source=hashnode&utm_medium=feed)

In this post, as the title suggests, I'll discuss why one shouldn't emit View States (or as some people prefer to call it Resource nowadays) from Repository, and why is it Anti-Pattern IMO. While discussing that, this post will also address why retur...

Jul 5, 2020 · 6 min read · rivuchk.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#androiddev](https://hashnode.com/tag/androiddev)
-   [#jetpack](https://hashnode.com/tag/jetpack)
-   [#livedata](https://hashnode.com/tag/livedata)
-   [#optimisation](https://hashnode.com/tag/optimisation)

## Written by

[Rivu Chakraborty](https://hashnode.com/@rivuchakraborty)

@rivuchakraborty · Bangalore

  
[View profile](https://hashnode.com/@rivuchakraborty)

Mobile Leader, India's first GDE for Kotlin

Rivu Chakraborty is a community person, an Android &amp; Kotlin developer, one of the early adopters of Kotlin, India's first GDE (Google Developers Expert) for Kotlin (https://developers.google.com/community/experts/directory/profile/profile-rivu-chakraborty). Rivu is currently the Senior Manager of the Mobile Platform team at JioCinema (Viacom18). He has previously worked with many leading startups in India and Southeast Asia, as listed below. As SDE-4 / Lead Engineer (Android) at Meesho (FashNear Technologies Pvt. Ltd.). As Senior Android Developer - L3 at Gojek (GoProducts Engineering India LLP). As Android Architect at Paytm Insider &amp; Paytm (Chat, Movies, Events). As Sr. Software Engineer (Android) at BYJU'S The Learning App. He has authored multiple Kotlin and Android Development books, including Reactive Programming in Kotlin, Functional Kotlin, Hands-On Data Structures and Algorithms with Kotlin, etc. More details are in the Books section. Rivu considers himself a Kotlin and Android enthusiast cum evangelist. He has been using Kotlin since December 2015. Rivu created the KotlinKolkata User Group and before moving out to Bangalore, he had been the lead organizer for both Kotlin Kolkata User Group and GDG Kolkata. He now co-organizes BlrKotlin and volunteers for BlrDroid events.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
