React-Google-Apps-Script icon indicating copy to clipboard operation
React-Google-Apps-Script copied to clipboard

infinity cycle refresh/reload by dev server when change the code

Open dandgerson opened this issue 2 years ago • 4 comments

Hi, @enuchi and other contributors thanks for the boilerplate!!

The problem with infinity cycle refresh/reload (by the dev server, i guess) appear when i add some more complicated codebase (components and other stuff) and try to change the code.

When infinity cycle refresh/reload appears:

  • If change src/client/sidebar-about-page/components/About.jsx to .tsx

  • If change makes in more deep code modules like src/client/sidebar-about-page/app/store.js

How to we can fix this problem? Have any had this problem with infinity cycle refresh/reload?

The sample project where i reproduced behavior: https://github.com/dandgerson/google-sheets-plugin

maybe it behave because of reduxjs/toolkit

// src/client/sidebar-about-page/index.js
root.render(
  <Provider store={store}>
    <About />
  </Provider>
);


dandgerson avatar Aug 13 '23 07:08 dandgerson

@enuchi I have the same issue...

komarov-sergey avatar Aug 13 '23 08:08 komarov-sergey

@dandgerson did you ever resolve this?

randy-mammoth-labs avatar May 08 '24 02:05 randy-mammoth-labs