Skip to content

Android Bundler command always having reset-cache enabled #52275

Closed as not planned

Description

@hwekim

https://github.com/facebook/react-native/blob/da1bf8d1d1b83b8cee76e94987d94d9ffba6db51/packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/BundleHermesCTask.kt#L151

in android bundle command, why do you always set --reset-cache instead of getting value from metro.config.js or extraPackagerArgs from build.gradle? it seems like assemble task is clearing our cacheStore

Activity

  1. transferred this issue fromreact/metroon Jun 25, 2025
  2. react-native-bot commented on Jun 25, 2025

    @react-native-bot
    Collaborator

    Warning

    Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:


    You can read more about about it on our website: How to report a bug.

  3. robhogan commented on Jun 25, 2025

    @robhogan
    Collaborator

    Transferring to RN but I agree that resetting the Metro cache shouldn’t be the default for a build, as long as the corresponding “clean” task also clears the Metro cache - maybe we need a better way to facilitate that.

  4. react-native-bot commented on Jul 20, 2025

    @react-native-bot
    Collaborator

    This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

  5. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    and removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Jul 20, 2025
  6. react-native-bot commented on Aug 14, 2025

    @react-native-bot
    Collaborator

    This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

  7. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Aug 14, 2025
  8. react-native-bot commented on Aug 22, 2025

    @react-native-bot
    Collaborator

    This issue was closed because it has been stalled for 7 days with no activity.

  9. removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions