You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked in the docs and I don't see however that we say somewhere that these functions have to be server code (actually, taht they can't be client code - because they can also certainly be isomorphic). We should probably say so!
This touches the general question of should we have a way of distinguishing between client and the server code, e.g. files having .server.js or .client.js extensions. Or should it be .node.js / .bun.js / .deno.js? Wild!
Also, the question of should we always make it clear in our docs if function shoudl be client or server code and maybe having a mechanism to easily implement that in the docs.
The text was updated successfully, but these errors were encountered:
We had a user getting errors here because we was importing these functions from .jsx file: https://discord.com/channels/686873244791210014/1296186131918098536/1296186131918098536 .
I looked in the docs and I don't see however that we say somewhere that these functions have to be server code (actually, taht they can't be client code - because they can also certainly be isomorphic). We should probably say so!
This touches the general question of should we have a way of distinguishing between client and the server code, e.g. files having .server.js or .client.js extensions. Or should it be .node.js / .bun.js / .deno.js? Wild!
Also, the question of should we always make it clear in our docs if function shoudl be client or server code and maybe having a mechanism to easily implement that in the docs.
The text was updated successfully, but these errors were encountered: