nishaaannnt / advance-bookmarks

A chrome extension to manage and arrange your bookmarks in a better way.
20 stars 8 forks source link

Fix/bug #17

Closed ArkadiK94 closed 11 months ago

ArkadiK94 commented 11 months ago

Solves issue #11 Now, when you add or remove a bookmark it will change in the extension as well. There was two solutions that I thought about.

  1. Remove the if statement from the useEffect to fetch every time the bookmarks from the browser bookmark API. However, it is not efficient because you use recursion every time.
  2. Create service-worker and listen when the user creates and removes a bookmark. This ways is better so I choose it.
  • I put the service_worker in the 'public' folder so it will be a separate file in the build

I created new pr. The same as pr number #14

@nishaaannnt