title: Should I still use getInstance() for SharedPreference with Hilt SingltonComponent?
body: <p>At the moment, I am using this code:</p>
  <pre><code>@Module
  @InstallIn(SingletonComponent::class)
  class DataStoreModule {
      @Provides
      fun providePreferencesDataStoreRepository(@ApplicationContext appContext: Context) =
          PreferenceRepository.getInstance(appContext)
  }
  </code></pre>
  <p>But as far as I know, when SingletonComponent is used, I don't need to use PreferenceRepository with getInstance(). So,</p>
  <p>Is this code make it any differences?</p>
  <pre><code>@Module
  @InstallIn(SingletonComponent::class)
  class DataStoreModule {
      @Provides
      fun providePreferencesDataStoreRepository(@ApplicationContext appContext: Context) =
          PreferenceRepository(appContext)
  }
  </code></pre>
  <p>I tried to decompile and check, but I don't know the place where I can see it.</p>
  <p>I guess, PreferenceRepository should use getInstance() because the usage of this class itself should be clear. Is there any differences?</p>