Remix.run Logo
b_e_n_t_o_n 14 hours ago

Many functions can only be called in a certain context. Calling them "not functions" is misleading imo because it implies those functions are compiled out or something, like `$state()` in Svelte.

slmjkdbtl 13 hours ago | parent [-]

Yeah they themselves are functions but how they're called are managed by a complicated system, I think treating them as a separate new concept is less misleading than calling them plain functions

b_e_n_t_o_n 12 hours ago | parent [-]

Well they aren't plain functions, they're like lifecycle methods for the component with an implicit `this`. Perhaps that's how they should be described.