hoarcekat
hoarcekat copied to clipboard
Preview window doesn't work when using unpublished draft
The plugin seems to break when collaborative editing is enabled and it tries to access an unpublished draft. The component shows up in the preview window sidebar, however, you get errors when trying to toggle it. From my experimenting, this is 100% reproducible.
- Turn on collaborative editing (drafts feature)
- Create a
Test.story
module with the code from the example - Attempt to view the component in the preview window
This is the error I get at the bottom of my output window:
Error executing story: Hoarcekat.Plugin.Components.Preview:118: attempt to call a table value
Hoarcekat.Plugin.Components.Preview:118
Hoarcekat.Plugin.Components.Preview:117 function refreshPreview
Hoarcekat.Plugin.Components.Preview:83 function didUpdate
Hoarcekat.Vendor.Roact.Component:460 function __resolveUpdate
Hoarcekat.Vendor.Roact.Component:394 function __update
Hoarcekat.Vendor.Roact.createReconciler:227 function updateVirtualNode
Hoarcekat.Vendor.Roact.createReconciler:67 function updateChildren
Hoarcekat.Vendor.Roact.createReconciler:108 function updateVirtualNodeWithRenderResult
Hoarcekat.Vendor.Roact.Component:456 function __resolveUpdate
Hoarcekat.Vendor.Roact.Component:394 function __update
Hoarcekat.Vendor.Roact.Component:161 function setState
Hoarcekat.Vendor.RoactRodux.connect:162
Hoarcekat.Vendor.Rodux.Signal:70 function fire
Hoarcekat.Vendor.Rodux.Store:125
Ongoing issue. You have to commit your drafts to get an updated preview, it doesn't error, it just straight up is outdated. This is a really annoying issue, I'm not sure if this is due to Roblox limitations or what, if this could get resolved I'd love to see it.