-
Notifications
You must be signed in to change notification settings - Fork 9
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
Multiple wysiwyg editors in same schema #45
Comments
Hi @choffa, I have marked this and will have a look at as soon as possible, it seems to be related specifically to the cache, but I will have a look to make sure the data is as expected when editing content via the Flamelink interface. Please feel free to contribute and create a PR for the issue if this is at all possible. |
Update: The error appear to affect any schema with more than one child node type I have done some further investigating and the error appears affect any schema that has more than one child node type. I have tested this with the following conditions now:
Again the content does not appear anywhere on the first build after changing the CMS, not in the |
Any updates on this @gitdubz ? Given the update above this is quite critical to our use of the plugin. |
I am replicating the suggested schemas and having a look into it. Does the content appear when you make a change in the CMS and then run a clean build? |
Yes it does. |
Hi @choffa, working on the issue, think we have found the problem. For now the only workaround is the clean before a build every time unfortunately. I will keep you posted, this might take a couple of days to resolve. |
@gitdubz Any updates on this? Our client is very keen on having automatic publishing after CMS updates, and until this is fixed that is simply not possible (we use Gatsby Cloud for builds, which does not have an option to automatically clean before build). |
@gitdubz Again, any updates or timeframe? I don't mean to bug you, but I would like to see this fixed so we can start using automatic builds again. You say you have been able to find the problem? If the issue is time, could you share your findings so I can take a look myself? Thanks! :) |
Hi @choffa, sorry for taking so long to respond. We will need to implement cache clearing when fetching data as mentioned here It would need to be done here in these two files, when the node is created a cache object would need to be set, As for the automated builds, |
Hi @gitdubz How is the progress on this issue? |
Description
Hi
I am having some issues with the plugin and multiple wysiwyg editors. The issue arises when using multiple of the basic wysiwyg editor in the same schema. My problem is that when I edit one of them, the other's field resolves to
null
the next time I rungatsby develop
. I have a custom resolver for the field as such (This should not be required, but was useful for debugging purposes, issue happens regardless):And debugging confirms that the resolver does not find a
FlamelinkTextHtmlContentNode
for<field-name>___NODE
.The even more confusing bit is that if I then run
gatsby develop
again and without runninggatsby clean
theFlamelinkTextHtmlContentNode
resumes to exist i GraphiQL and using the resolver described above. However, this is not reflected in the corresponding page component, as I suspect Gatsby does not see any changes to the content and therefore does not re-run the page Query. Checking the React developer tools confirms this, as thedata
field is not updated in the component inspector.Summary
field1
andfield2
field1
theFlamelinkTextHtmlContentNode
corresponding tofield2
disappears after restarting the development servergatsby clean
restores expected behaviourPlease let me know if you need any more information!
The text was updated successfully, but these errors were encountered: