I'm trying to use the reactive variables:
My cache file :
import { makeVar } from "@apollo/client"
export const colorVar = makeVar('red')
File A (updating the value):
import { colorVar } from "cache"
colorVar('green')
File B (reading the value and should re-render after the value updated in File A):
import { colorVar } from "cache"
console.log(colorVar())
The update action in file A does not trigger the re-render of file B