-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks don't work after standard install and configuration #284
Comments
Embedding stories in an iframe avoids the problem, so for now we can follow the guide here: https://hexdocs.pm/phoenix_storybook/sandboxing.html#4-enabling-iframe-rendering ...e.g.: defmodule MyAppWeb.Storybook.AlpineComponent do
use PhoenixStorybook.Story, :live_component
def component, do: MyAppWeb.Components.Alpine
def description, do: "Generic Alpine component"
def attributes, do: [
%Attr{id: :id, type: :string},
%Attr{id: :name, type: :string, required: true},
%Attr{id: :data, type: :map, required: true}
]
def slots, do: []
+ def container do
+ :iframe
+ end
def variations, do: [
%Variation{
id: :default,
attributes: %{
name: "foobox",
data: %{foo: "bar"}
}
}
]
end |
Im having the same issue in our app with Hooks :( |
@michaelterryio @danturn it looks like this was fixed in you could get the fix now by pulling your dependency from github, e.g. in in which case you'll need to run |
Ya know, I actually saw that issue, I think coming off Google, and it didn't occur to me that it was prerelease. Thanks. |
The reference fly.io deploy emits the same warnings/errors that I'm seeing in my app.
See phenixdigital/phoenix_storybook_demo#4
The text was updated successfully, but these errors were encountered: