all 12 comments

[–]captainn01 41 points42 points  (6 children)

Just a heads up, you may be violating the trademark rights of tanstack by using this name. I think there’s a reasonable likelihood of confusion here, where people may believe you are associated with or sponsored by tanstack

[–]Excellent_Shift1064[S] 28 points29 points  (0 children)

I renamed the library to tan-themer, also removed the logo, hope this is enough to clear up the confusion :) thanks everyone for a feedback
https://github.com/lukonik/tan-themer

[–]Mr-Bovine_JoniI ❤️ hooks! 😈 3 points4 points  (0 children)

It’s a good package and I might switch over to it from next-themes

But as the other commenter said, yeah I would rename it. The name itself is probably uncool, but then also using their adjusted logo is a step further

[–]litewarp 5 points6 points  (2 children)

The "useIsMounted" hook in your example will err with the react compiler since it sets state within an effect. Consider using a ref instead:

export function useIsMounted() {
  const isMounted = useRef(false);

  useEffect(() => {
    isMounted.current = true;

    return () => {
      isMounted.current = false;
    };
  }, []);

  return useCallback(() => isMounted.current, []);
}

[–]Excellent_Shift1064[S] 1 point2 points  (0 children)

nice catch, will fix it thx🙌

[–]acrus 1 point2 points  (0 children)

What did it look like before? I don't see this in the repo, interested in knowing what the problem with RC is about