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
If path does not point to a valid resource (anymore), the call to createPreviewFigureBuilder will produce a warning:
Warning: filemtime(): stat failed for […]
This makes the API a bit cumbersome to use, because now you'll first need to check if a file exists before you can make calls to the factory. Can we improve this? In the above example, it would be nice, if the result would just be null like when using the FigureBuilder directly.
Affected version(s)
4.13, 5.3
Description
Consider the following code:
If
path
does not point to a valid resource (anymore), the call tocreatePreviewFigureBuilder
will produce a warning:This makes the API a bit cumbersome to use, because now you'll first need to check if a file exists before you can make calls to the factory. Can we improve this? In the above example, it would be nice, if the result would just be null like when using the
FigureBuilder
directly./cc @ausi
The text was updated successfully, but these errors were encountered: