We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e30ce4a commit b369312Copy full SHA for b369312
1 file changed
assets/js/phoenix_live_view/index.ts
@@ -317,6 +317,10 @@ const LiveSocket = OriginalLiveSocket as unknown as LiveSocketConstructor;
317
* which is triggered after the element has been added to the DOM. If you try
318
* to call `createHook` from the constructor, an error will be logged.
319
*
320
+ * Furthermore, you can only start using the hook's APIs after the `mounted`
321
+ * callback of the hook has been called. If you try to call them earlier,
322
+ * an error will be logged.
323
+ *
324
* @example
325
326
* class MyComponent extends HTMLElement {
0 commit comments